Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Let PostgreSQL drain test connections before dropping fixture databases

Regan Bell0213a649f334
diff --git a/test/postgres-items-bulk-catchup.test.ts b/test/postgres-items-bulk-catchup.test.ts
index 86eda6d9e..a58cc442a 100644
--- a/test/postgres-items-bulk-catchup.test.ts
+++ b/test/postgres-items-bulk-catchup.test.ts
@@ -44,7 +44,7 @@ async function fixture(fn: (client: pg.Client, url: string, op: ItemsCopyOperato
} finally {
await client.end();
await pool.end();
- await admin.query(`DROP DATABASE ${name} WITH (FORCE)`);
+ await admin.query(`DROP DATABASE ${name}`);
await admin.end();
}
}
diff --git a/test/postgres-items-parallel-catchup.test.ts b/test/postgres-items-parallel-catchup.test.ts
index 9b7f51c8b..a67431d3d 100644
--- a/test/postgres-items-parallel-catchup.test.ts
+++ b/test/postgres-items-parallel-catchup.test.ts
@@ -44,7 +44,7 @@ async function fixture(fn: (client: pg.Client, url: string, op: ItemsCopyOperato
} finally {
await client.end();
await pool.end();
- await admin.query(`DROP DATABASE ${name} WITH (FORCE)`);
+ await admin.query(`DROP DATABASE ${name}`);
await admin.end();
}
}