style: auto-format entire codebase with cargo fmt (stable rustfmt.toml)
Some checks failed
ci/woodpecker/pr/check Pipeline failed
CI / Check (pull_request) Has been cancelled
CI / Format (pull_request) Has been cancelled
CI / Clippy (pull_request) Has been cancelled
CI / Build (macos-latest) (pull_request) Has been cancelled
CI / Build (ubuntu-latest) (pull_request) Has been cancelled
CI / Build (windows-latest) (pull_request) Has been cancelled
Some checks failed
ci/woodpecker/pr/check Pipeline failed
CI / Check (pull_request) Has been cancelled
CI / Format (pull_request) Has been cancelled
CI / Clippy (pull_request) Has been cancelled
CI / Build (macos-latest) (pull_request) Has been cancelled
CI / Build (ubuntu-latest) (pull_request) Has been cancelled
CI / Build (windows-latest) (pull_request) Has been cancelled
This commit is contained in:
@@ -97,7 +97,9 @@ async fn test_typing_indicator_on() {
|
||||
|
||||
// Alice начала печатать в чате 123
|
||||
// Симулируем через send_chat_action
|
||||
client.send_chat_action(ChatId::new(123), "Typing".to_string()).await;
|
||||
client
|
||||
.send_chat_action(ChatId::new(123), "Typing".to_string())
|
||||
.await;
|
||||
|
||||
assert_eq!(*client.typing_chat_id.lock().unwrap(), Some(123));
|
||||
|
||||
@@ -110,11 +112,15 @@ async fn test_typing_indicator_off() {
|
||||
let client = FakeTdClient::new();
|
||||
|
||||
// Изначально Alice печатала
|
||||
client.send_chat_action(ChatId::new(123), "Typing".to_string()).await;
|
||||
client
|
||||
.send_chat_action(ChatId::new(123), "Typing".to_string())
|
||||
.await;
|
||||
assert_eq!(*client.typing_chat_id.lock().unwrap(), Some(123));
|
||||
|
||||
// Alice перестала печатать
|
||||
client.send_chat_action(ChatId::new(123), "Cancel".to_string()).await;
|
||||
client
|
||||
.send_chat_action(ChatId::new(123), "Cancel".to_string())
|
||||
.await;
|
||||
|
||||
assert_eq!(*client.typing_chat_id.lock().unwrap(), None);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user