mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Disable notify in tests
This commit is contained in:
parent
66979c7c11
commit
006a96d0eb
2 changed files with 2 additions and 2 deletions
|
|
@ -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 });
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue