mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-11 04:21:12 +01:00
Fix the tests
This commit is contained in:
parent
58c8015e78
commit
721feb0082
2 changed files with 7 additions and 3 deletions
|
@ -215,7 +215,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
let dispatcher = DialogueDispatcher::new(
|
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;
|
tokio::time::sleep(Duration::from_millis(300)).await;
|
||||||
|
|
||||||
match cx.cx.update {
|
match cx.cx.update {
|
||||||
|
|
|
@ -33,7 +33,11 @@
|
||||||
//! # #[cfg(feature = "macros")] {
|
//! # #[cfg(feature = "macros")] {
|
||||||
//! use std::convert::Infallible;
|
//! use std::convert::Infallible;
|
||||||
//!
|
//!
|
||||||
//! use teloxide::{dispatching::dialogue::Transition, prelude::*, teloxide, RequestError};
|
//! use teloxide::{
|
||||||
|
//! dispatching::dialogue::{InMemStorageError, Transition},
|
||||||
|
//! prelude::*,
|
||||||
|
//! teloxide, RequestError,
|
||||||
|
//! };
|
||||||
//!
|
//!
|
||||||
//! #[derive(Clone)]
|
//! #[derive(Clone)]
|
||||||
//! struct _1State;
|
//! struct _1State;
|
||||||
|
@ -72,7 +76,7 @@
|
||||||
//! }
|
//! }
|
||||||
//! }
|
//! }
|
||||||
//!
|
//!
|
||||||
//! type In = DialogueWithCx<AutoSend<Bot>, Message, D, Infallible>;
|
//! type In = DialogueWithCx<AutoSend<Bot>, Message, D, InMemStorageError>;
|
||||||
//!
|
//!
|
||||||
//! #[tokio::main]
|
//! #[tokio::main]
|
||||||
//! async fn main() {
|
//! async fn main() {
|
||||||
|
|
Loading…
Reference in a new issue