mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 15:01:45 +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(
|
||||
|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 {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue