Disable notify in tests

This commit is contained in:
Alex Gleason 2025-03-15 16:50:26 -05:00
parent 66979c7c11
commit 006a96d0eb
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ function createTestApp(): TestApp {
const conf = new DittoConf(Deno.env); const conf = new DittoConf(Deno.env);
const db = new DittoPolyPg(conf.databaseUrl); const db = new DittoPolyPg(conf.databaseUrl);
const pool = new MockRelay(); const pool = new MockRelay();
const store = new DittoPgStore({ conf, db }); const store = new DittoPgStore({ conf, db, notify: false });
const relay = new DittoRelayStore({ conf, db, pool, relay: store }); const relay = new DittoRelayStore({ conf, db, pool, relay: store });
return new TestApp(route, { conf, db, relay }); return new TestApp(route, { conf, db, relay });

View file

@ -22,7 +22,7 @@ export async function createTestDB(opts?: { pure?: boolean }) {
conf, conf,
timeout: conf.db.timeouts.default, timeout: conf.db.timeouts.default,
pure: opts?.pure ?? false, pure: opts?.pure ?? false,
notify: true, notify: false,
}); });
return { return {