Fix the tests

This commit is contained in:
Temirkhan Myrzamadi 2021-05-08 17:38:03 +06:00
parent 58c8015e78
commit 721feb0082
2 changed files with 7 additions and 3 deletions

View file

@ -215,7 +215,7 @@ mod tests {
}
let dispatcher = DialogueDispatcher::new(
|cx: DialogueWithCx<Bot, MyUpdate, (), Infallible>| async move {
|cx: DialogueWithCx<Bot, MyUpdate, (), InMemStorageError>| async move {
tokio::time::sleep(Duration::from_millis(300)).await;
match cx.cx.update {

View file

@ -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<AutoSend<Bot>, Message, D, Infallible>;
//! type In = DialogueWithCx<AutoSend<Bot>, Message, D, InMemStorageError>;
//!
//! #[tokio::main]
//! async fn main() {