From 903c3cf84d49f0001a0ba1a49b43de02eae624d5 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Mon, 17 Jun 2024 16:17:00 +0100 Subject: [PATCH] Fix flake in generic-sql.spec.ts. --- .../server/src/api/routes/tests/queries/generic-sql.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/queries/generic-sql.spec.ts b/packages/server/src/api/routes/tests/queries/generic-sql.spec.ts index d44acb84d9..b060a099d8 100644 --- a/packages/server/src/api/routes/tests/queries/generic-sql.spec.ts +++ b/packages/server/src/api/routes/tests/queries/generic-sql.spec.ts @@ -63,6 +63,7 @@ describe.each( client = await knexClient(rawDatasource) + await client.schema.dropTableIfExists("test_table") await client.schema.createTable("test_table", table => { table.increments("id").primary() table.string("name") @@ -84,7 +85,6 @@ describe.each( afterEach(async () => { const ds = await config.api.datasource.get(datasource._id!) await config.api.datasource.delete(ds) - await client.schema.dropTable("test_table") }) afterAll(async () => {