From 721feb0082c46c8a8cb7bd5025ddcbf84cded63e Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Sat, 8 May 2021 17:38:03 +0600 Subject: [PATCH] Fix the tests --- src/dispatching/dialogue/dialogue_dispatcher.rs | 2 +- src/dispatching/dialogue/mod.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/dispatching/dialogue/dialogue_dispatcher.rs b/src/dispatching/dialogue/dialogue_dispatcher.rs index b04b39d5..31fbdc90 100644 --- a/src/dispatching/dialogue/dialogue_dispatcher.rs +++ b/src/dispatching/dialogue/dialogue_dispatcher.rs @@ -215,7 +215,7 @@ mod tests { } let dispatcher = DialogueDispatcher::new( - |cx: DialogueWithCx| async move { + |cx: DialogueWithCx| async move { tokio::time::sleep(Duration::from_millis(300)).await; match cx.cx.update { diff --git a/src/dispatching/dialogue/mod.rs b/src/dispatching/dialogue/mod.rs index fb7a8371..097c7180 100644 --- a/src/dispatching/dialogue/mod.rs +++ b/src/dispatching/dialogue/mod.rs @@ -33,7 +33,11 @@ //! # #[cfg(feature = "macros")] { //! use std::convert::Infallible; //! -//! use teloxide::{dispatching::dialogue::Transition, prelude::*, teloxide, RequestError}; +//! use teloxide::{ +//! dispatching::dialogue::{InMemStorageError, Transition}, +//! prelude::*, +//! teloxide, RequestError, +//! }; //! //! #[derive(Clone)] //! struct _1State; @@ -72,7 +76,7 @@ //! } //! } //! -//! type In = DialogueWithCx, Message, D, Infallible>; +//! type In = DialogueWithCx, Message, D, InMemStorageError>; //! //! #[tokio::main] //! async fn main() {