[control] Tests: a 5 s trial margin, room for a loaded runner between a watch's end and the confirmation
This commit is contained in:
@@ -237,8 +237,9 @@ mod unix {
|
||||
"{stage}: edge.json untouched"
|
||||
);
|
||||
}
|
||||
// A trial edge was serving reverts by itself at its deadline (watch 2 s + margin 2 s).
|
||||
tokio::time::sleep(Duration::from_secs(5)).await;
|
||||
// A trial edge was serving reverts by itself at its deadline (watch 2 s + margin 5 s,
|
||||
// common/mod.rs: room for a loaded runner between the watch's end and the confirmation).
|
||||
tokio::time::sleep(Duration::from_secs(8)).await;
|
||||
let st = env.edge_status().await;
|
||||
assert!(st["trial"].is_null(), "{stage}: trial still running: {st}");
|
||||
if !confirmed {
|
||||
|
||||
@@ -174,7 +174,7 @@ state_dir = "{state}"
|
||||
credentials_dir = "{creds}"
|
||||
watch_secs = {watch}
|
||||
watch_every_secs = 1
|
||||
trial_margin_secs = 2
|
||||
trial_margin_secs = 5
|
||||
health_poll_secs = 1
|
||||
|
||||
[routes]
|
||||
|
||||
Reference in New Issue
Block a user