test: Fix flakiness of test_second_request_for_non_existent_table_should_be_quick
Changed divider in assertion (response.elapsed.total_seconds() < first_duration / divider) to 2 (from 10).
(cherry picked from commit 886df84e87)
This commit is contained in:
committed by
Taimoor Zaeem
parent
3a4dc5eff3
commit
1d40fe5d93
@@ -109,4 +109,4 @@ def test_second_request_for_non_existent_table_should_be_quick(defaultenv):
|
||||
assert data["code"] == "PGRST205"
|
||||
first_duration = response.elapsed.total_seconds()
|
||||
response = postgrest.session.get("/unknown-table")
|
||||
assert response.elapsed.total_seconds() < first_duration / 10
|
||||
assert response.elapsed.total_seconds() < first_duration / 2
|
||||
|
||||
Reference in New Issue
Block a user