From 6b9ed84e57cac0de04384d5d00795e9c7d7fc802 Mon Sep 17 00:00:00 2001 From: Kasper Lund Date: Tue, 1 Mar 2022 11:43:30 +0100 Subject: [PATCH] Make the monitor tests more robust against problematic timing (#525) --- tests/monitor_test.toit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/monitor_test.toit b/tests/monitor_test.toit index 4f74dd75e..54537060b 100644 --- a/tests/monitor_test.toit +++ b/tests/monitor_test.toit @@ -212,14 +212,14 @@ test_entry_timeouts: task:: mutex.do: ready.up - sleep --ms=200 + sleep --ms=300 // Try to get hold of the mutex. Make sure it times // out as expected. ready.down 10.repeat: task:: expect_throw DEADLINE_EXCEEDED_ERROR: - with_timeout --ms=50: + with_timeout --ms=10: mutex.do: value++ done.up