Add note about hanging queries in DittoPostgres test

This commit is contained in:
Alex Gleason 2025-03-05 14:47:35 -06:00
parent 0b72533b05
commit 9b422d8e31
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -9,3 +9,14 @@ Deno.test('DittoPostgres', { ignore: !isPostgres }, async () => {
await using db = new DittoPostgres(conf.databaseUrl);
await db.migrate();
});
// FIXME: There is a problem with postgres-js where queries just hang after the database is closed.
// Deno.test('DittoPostgres query after closing', { ignore: !isPostgres }, async () => {
// const db = new DittoPostgres(conf.databaseUrl);
// await db[Symbol.asyncDispose]();
//
// await assertRejects(
// () => db.kysely.selectFrom('nostr_events').selectAll().execute(),
// );
// });