Merge pull request #6123 from sfc-gh-ajbeamon/increase-timeout-test-epsilon

Fix false positive in disconnected_timeout_test
This commit is contained in:
Andrew Noyes 2021-12-08 09:20:13 -08:00 committed by GitHub
commit ffe51901ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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