mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 05:52:55 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user