From 08341558825509aa4a6b76be98a29b0603123908 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 30 Mar 2023 12:24:01 +0200 Subject: [PATCH] tests: fix "[Errno 39] Directory not empty" https://neon-github-public-dev.s3.amazonaws.com/reports/pr-3905/debug/4562684660/index.html#suites/0e58fb04d9998963e98e45fe1880af7d/f89800acfdc76ec7/ --- test_runner/regress/test_disk_usage_eviction.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_runner/regress/test_disk_usage_eviction.py b/test_runner/regress/test_disk_usage_eviction.py index 61691e7d85..92362a54b0 100644 --- a/test_runner/regress/test_disk_usage_eviction.py +++ b/test_runner/regress/test_disk_usage_eviction.py @@ -139,6 +139,9 @@ def eviction_env(request, neon_env_builder: NeonEnvBuilder, pg_bin: PgBin) -> Ev env.pageserver.allowed_errors.append(r".* running disk usage based eviction due to pressure.*") # remove the initial tenant + ## why wait for upload queue? => https://github.com/neondatabase/neon/issues/3865 + assert env.initial_timeline + wait_for_upload_queue_empty(env.pageserver, env.initial_tenant, env.initial_timeline) pageserver_http.tenant_detach(env.initial_tenant) assert isinstance(env.remote_storage, LocalFsStorage) tenant_remote_storage = env.remote_storage.root / "tenants" / str(env.initial_tenant)