From 9e548a68a54f2e9a6bc56cb57c201d2d083f6038 Mon Sep 17 00:00:00 2001 From: LKSNDRTMLKV Date: Mon, 12 Oct 2026 23:17:17 +0200 Subject: [PATCH] fix(test): drop the shared test Postgres volume --- scripts/shared-test-pg.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/shared-test-pg.sh b/scripts/shared-test-pg.sh index 9fe97cd2..5047a4ab 100644 --- a/scripts/shared-test-pg.sh +++ b/scripts/shared-test-pg.sh @@ -26,7 +26,11 @@ container="odal-shared-test-pg-$$" port="${ODAL_TEST_PG_PORT:-55432}" cleanup() { - docker rm -f "$container" > /dev/null 2>&1 || true + # `-v`, or the server's data stays behind. `postgres:17` declares its data + # directory a volume, and an explicit `docker rm` keeps a container's + # anonymous volumes even when `--rm` started it. Each run then left one + # orphaned volume holding every database it cloned, 1-10 GB apiece. + docker rm -f -v "$container" > /dev/null 2>&1 || true } trap cleanup EXIT