authorgravatar for semarie@online.frSébastien Marie <semarie@online.fr> 2020-11-10 05:29:53+00:00
committergravatar for semarie@online.frSébastien Marie <semarie@online.fr> 2020-11-10 05:29:53+00:00
log678bd4fc8919d0683435712fbf256c3fbd4821f9
treeac9069db1522a237caa556a8f2ae56539ac5b6e2
parent9d306e5c77b19fdb8a211f5460d4fd4a7d1fb915

"ResetEvent" test seems to have a too short timeout: the test is failing randomly on OpenBSD

raise the timeout to 100ms to be sure that if it fails (timeout is returned) it is due to a real problem. the test shouldn't be longer: it will wait more time only on failure.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/reset_event.zig+1-1
...@@ -450,7 +450,7 @@ test "ResetEvent" {...@@ -450,7 +450,7 @@ test "ResetEvent" {
450 fn timedWaiter(self: *Self) !void {450 fn timedWaiter(self: *Self) !void {
451 self.in.wait();451 self.in.wait();
452 testing.expectError(error.TimedOut, self.out.timedWait(time.ns_per_us));452 testing.expectError(error.TimedOut, self.out.timedWait(time.ns_per_us));
453 try self.out.timedWait(time.ns_per_ms * 10);453 try self.out.timedWait(time.ns_per_ms * 100);
454 testing.expect(self.value == 5);454 testing.expect(self.value == 5);
455 }455 }
456 };456 };