mirror of
https://github.com/ziglang/zig.git
synced 2026-01-04 04:25:05 +00:00
"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.
This commit is contained in:
parent
9d306e5c77
commit
678bd4fc89
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user