mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
test: remove timeout from pop_sent_msg_ex()
Arbitrary timeouts often result in flaky tests, especially if CI runners may be paused. In this case however timeout was not used by any tests and only slowed down the tests in cases where no message is expected but non-zero timeout is set.
This commit is contained in:
@@ -145,7 +145,6 @@ mod tests {
|
||||
use crate::message::{Message, Viewtype};
|
||||
use crate::test_utils::TestContext;
|
||||
use anyhow::Result;
|
||||
use std::time::Duration;
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_default_integrations_are_single_device() -> Result<()> {
|
||||
@@ -158,7 +157,7 @@ mod tests {
|
||||
t.set_webxdc_integration(file.to_str().unwrap()).await?;
|
||||
|
||||
// default integrations are shipped with the apps and should not be sent over the wire
|
||||
let sent = t.pop_sent_msg_opt(Duration::from_secs(1)).await;
|
||||
let sent = t.pop_sent_msg_opt().await;
|
||||
assert!(sent.is_none());
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user