integration-test: deflake log test

Wait for at least one log and increase the wait time 10x.
reviewable/pr733/r3
Tamir Duberstein 1 year ago
parent d3513e7010
commit b6a6a81f95
No known key found for this signature in database

@ -70,12 +70,16 @@ async fn log() {
let mut logs = 0; let mut logs = 0;
let records = loop { let records = loop {
tokio::time::sleep(std::time::Duration::from_millis(10)).await; tokio::time::sleep(std::time::Duration::from_millis(100)).await;
let records = captured_logs.lock().unwrap(); let records = captured_logs.lock().unwrap();
if records.len() == logs { let len = records.len();
if len == 0 {
continue;
}
if len == logs {
break records; break records;
} }
logs = records.len(); logs = len;
}; };
let mut records = records.iter(); let mut records = records.iter();

Loading…
Cancel
Save