@@ -204,7 +204,7 @@ test('flushes expired records when the plugin starts', async (t) => {
204204
205205 const firstClient = createMockMilkyClient();
206206 const firstCtx = Context.fromClient(firstClient);
207- installMessageStore(firstCtx, sqliteUrl, { autoFlush: false });
207+ installMessageStore(firstCtx, sqliteUrl, { autoFlush: { enabled: false } });
208208 await firstCtx.start();
209209 const received = await firstClient.receiveFriend({ userId: 10001 }, inmsg`expired`);
210210 await tick();
@@ -239,7 +239,7 @@ test('allows automatic expiration flushing to be disabled', async (t) => {
239239 const sqliteUrl = join(tempDir, 'messages.sqlite');
240240 const firstClient = createMockMilkyClient();
241241 const firstCtx = Context.fromClient(firstClient);
242- installMessageStore(firstCtx, sqliteUrl, { autoFlush: false });
242+ installMessageStore(firstCtx, sqliteUrl, { autoFlush: { enabled: false } });
243243 await firstCtx.start();
244244
245245 const received = await firstClient.receiveFriend({ userId: 10001 }, inmsg`retained`);
@@ -252,7 +252,7 @@ test('allows automatic expiration flushing to be disabled', async (t) => {
252252 await firstCtx.stop();
253253
254254 const secondCtx = Context.fromClient(createMockMilkyClient());
255- installMessageStore(secondCtx, sqliteUrl, { autoFlush: false });
255+ installMessageStore(secondCtx, sqliteUrl, { autoFlush: { enabled: false } });
256256 await secondCtx.start();
257257
258258 const stored = await secondCtx.resolve(MessageStoreService).getMessage({
0 commit comments