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).
This commit is contained in:
committed by
Steve Chavez
parent
8f5fe3f46b
commit
886df84e87
@@ -89,4 +89,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