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:
Michał Kłeczek
2026-04-01 15:14:45 +05:00
committed by Taimoor Zaeem
parent 3a4dc5eff3
commit 1d40fe5d93
+1 -1
View File
@@ -109,4 +109,4 @@ def test_second_request_for_non_existent_table_should_be_quick(defaultenv):
assert data["code"] == "PGRST205" assert data["code"] == "PGRST205"
first_duration = response.elapsed.total_seconds() first_duration = response.elapsed.total_seconds()
response = postgrest.session.get("/unknown-table") response = postgrest.session.get("/unknown-table")
assert response.elapsed.total_seconds() < first_duration / 10 assert response.elapsed.total_seconds() < first_duration / 2