From 2bd4518334d0a9e7e2703c7fd57dfa4547a96819 Mon Sep 17 00:00:00 2001 From: Yuyuan Yuan Date: Wed, 7 Feb 2024 23:33:39 +0800 Subject: [PATCH] Make cargo-nextest more resilient (#715) --- .config/nextest.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index 601660c929..8c57297dba 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,3 +1,14 @@ +# By default, retry a few times until pass the test within the specified timeout +[profile.default] +retries = 4 +slow-timeout = { period = "60s", terminate-after = 2 } + +# Run the following tests exclusively with longer timeout [[profile.default.overrides]] -filter = 'test(/zenoh_session_unicast/)' +filter = """ +test(=zenoh_session_unicast) | +test(=zenoh_session_multicast) | +test(=three_node_combination) +""" threads-required = 'num-cpus' +slow-timeout = { period = "60s", terminate-after = 6 }