Skip to content

Commit

Permalink
[#390] Make timing test more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Nov 21, 2024
1 parent b46883b commit 97dcaad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iceoryx2/tests/waitset_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,12 @@ mod waitset {
.unwrap();

assert_that!(now.elapsed(), ge TIMEOUT);
let now = Instant::now();

sut.wait_and_process_once(|_| CallbackProgression::Continue)
.unwrap();

assert_that!(now.elapsed(), ge 2 * TIMEOUT);
assert_that!(now.elapsed(), ge TIMEOUT / 2);
}

#[instantiate_tests(<iceoryx2::service::ipc::Service>)]
Expand Down

0 comments on commit 97dcaad

Please sign in to comment.