From 06e82c4f3f132b4ebeeb9ceae434ae12988b9a22 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 19 Oct 2024 13:56:58 -0400 Subject: [PATCH] Run docker ps before migrating --- api/data/subscription.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/data/subscription.test.ts b/api/data/subscription.test.ts index 540838d..e1daa03 100644 --- a/api/data/subscription.test.ts +++ b/api/data/subscription.test.ts @@ -7,6 +7,8 @@ import { updateSubscription, } from "./subscription" +import { exec } from "child_process" + const pushSubscription1 = { endpoint: "https://updates.push.services.mozilla.com/wpush/v2/aaaaaaa", expirationTime: null, @@ -51,6 +53,9 @@ describe("subscriptions", () => { beforeEach(async () => { try { + exec("docker compose -f docker-compose-test.yaml logs", (_, out) => + console.log(out) + ) await migrateToLatest() } catch (error) { console.log("Something has exploded in migration")