Skip to content

Commit

Permalink
Make the monitor tests more robust against problematic timing (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperl committed Mar 1, 2022
1 parent ab1c976 commit 6b9ed84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/monitor_test.toit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b9ed84

Please sign in to comment.