From 673a86505594d816b0eea2560a797291db8ed4bd Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 3 Jan 2024 11:50:58 +0000 Subject: [PATCH] tests: tolerate 304 when evicting layers (#6261) In tests that evict layers, explicit eviction can race with automatic eviction of the same layer and result in a 304 --- test_runner/fixtures/pageserver/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_runner/fixtures/pageserver/http.py b/test_runner/fixtures/pageserver/http.py index add6c4288a..6dea0d923d 100644 --- a/test_runner/fixtures/pageserver/http.py +++ b/test_runner/fixtures/pageserver/http.py @@ -714,7 +714,7 @@ class PageserverHttpClient(requests.Session): ) self.verbose_error(res) - assert res.status_code == 200 + assert res.status_code in (200, 304) def evict_all_layers(self, tenant_id: TenantId, timeline_id: TimelineId): info = self.layer_map_info(tenant_id, timeline_id)