"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:
Sébastien Marie 2020-11-10 05:29:53 +00:00
parent 9d306e5c77
commit 678bd4fc89

View File

@ -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);
}
};