From 163fc6bf982151ee45eb178dd5fbdfc14cdf781d Mon Sep 17 00:00:00 2001 From: Asier Isayas Date: Tue, 14 Apr 2026 10:48:34 -0700 Subject: [PATCH] fix: move container creation to beforeAll to reduce CI shard timeout --- test/sql/scaleAndSettings/throughputbucket.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/sql/scaleAndSettings/throughputbucket.spec.ts b/test/sql/scaleAndSettings/throughputbucket.spec.ts index fd88a65b6..1753c9b2e 100644 --- a/test/sql/scaleAndSettings/throughputbucket.spec.ts +++ b/test/sql/scaleAndSettings/throughputbucket.spec.ts @@ -6,8 +6,11 @@ test.describe("Throughput bucket settings", () => { let context: TestContainerContext = null!; let explorer: DataExplorer = null!; - test.beforeEach("Create Test Database & Open Throughput Bucket Settings", async ({ browser }) => { + test.beforeAll("Create Test Database", async () => { context = await createTestSQLContainer(); + }); + + test.beforeEach("Open Throughput Bucket Settings", async ({ browser }) => { const page = await browser.newPage(); explorer = await DataExplorer.open(page, TestAccount.SQL); @@ -19,7 +22,7 @@ test.describe("Throughput bucket settings", () => { // Delete database only if not running in CI if (!process.env.CI) { - test.afterEach("Delete Test Database", async () => { + test.afterAll("Delete Test Database", async () => { await context?.dispose(); }); }