Skip to content

Commit

Permalink
test: use a shorter timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed May 2, 2024
1 parent fec5529 commit 3dff7a4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# By default, retry a few times until pass the test within the specified timeout
[profile.default]
retries = 1
slow-timeout = { period = "60s", terminate-after = 2 }

# Run the following tests exclusively with longer timeout
[[profile.default.overrides]]
filter = """
test(=zenoh_session_unicast) |
test(=zenoh_session_multicast) |
test(=transport_tcp_intermittent) |
test(=transport_tcp_intermittent_for_lowlatency_transport) |
test(=three_node_combination)
"""
threads-required = 'num-cpus'
slow-timeout = { period = "60s", terminate-after = 6 }
# # By default, retry a few times until pass the test within the specified timeout
# [profile.default]
# retries = 1
# slow-timeout = { period = "60s", terminate-after = 2 }
#
# # Run the following tests exclusively with longer timeout
# [[profile.default.overrides]]
# filter = """
# test(=zenoh_session_unicast) |
# test(=zenoh_session_multicast) |
# test(=transport_tcp_intermittent) |
# test(=transport_tcp_intermittent_for_lowlatency_transport) |
# test(=three_node_combination)
# """
# threads-required = 'num-cpus'
# slow-timeout = { period = "60s", terminate-after = 6 }
2 changes: 1 addition & 1 deletion zenoh/tests/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use zenoh::prelude::r#async::*;
use zenoh::runtime::{Runtime, RuntimeBuilder};
use zenoh_core::ztimeout;

const TIMEOUT: Duration = Duration::from_secs(60);
const TIMEOUT: Duration = Duration::from_secs(20);
const SLEEP: Duration = Duration::from_secs(1);

const MSG_COUNT: usize = 1_000;
Expand Down

0 comments on commit 3dff7a4

Please sign in to comment.