Merge pull request #6123 from sfc-gh-ajbeamon/increase-timeout-test-epsilon
Fix false positive in disconnected_timeout_test
This commit is contained in:
commit
ffe51901ec
|
@ -58,7 +58,7 @@ fdb_error_t wait_future(fdb::Future& f) {
|
|||
void validateTimeoutDuration(double expectedSeconds, std::chrono::time_point<std::chrono::steady_clock> start) {
|
||||
std::chrono::duration<double> duration = std::chrono::steady_clock::now() - start;
|
||||
double actualSeconds = duration.count();
|
||||
CHECK(actualSeconds >= expectedSeconds - 1e-6);
|
||||
CHECK(actualSeconds >= expectedSeconds - 1e-3);
|
||||
CHECK(actualSeconds < expectedSeconds * 2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue