test: wait for attachment service readiness

This commit is contained in:
Vlad Lazar
2024-02-26 16:00:29 +00:00
parent 0881d4f9e3
commit 8965eb77e8

View File

@@ -1104,6 +1104,13 @@ class NeonEnv:
# bounce through retries on startup
self.attachment_service.start()
def attachment_service_ready():
assert self.attachment_service.ready() is True
# Wait for attachment service readiness to prevent unnecessary post start-up
# reconcile.
wait_until(30, 1, attachment_service_ready)
# Start up broker, pageserver and all safekeepers
futs = []
with concurrent.futures.ThreadPoolExecutor(