Commit 678bd4fc89

Sébastien Marie <semarie@online.fr>
2020-11-10 06:29:53
"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 parent 9d306e5
Changed files (1)
lib/std/reset_event.zig
@@ -450,7 +450,7 @@ test "ResetEvent" {
         fn timedWaiter(self: *Self) !void {
             self.in.wait();
             testing.expectError(error.TimedOut, self.out.timedWait(time.ns_per_us));
-            try self.out.timedWait(time.ns_per_ms * 10);
+            try self.out.timedWait(time.ns_per_ms * 100);
             testing.expect(self.value == 5);
         }
     };