From 71cf1d345600aa87421fa15c822f63062ab7854c Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:22:16 +0700 Subject: [PATCH] chore: fix leaking test --- test/integration/writer/proposal.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/writer/proposal.test.ts b/test/integration/writer/proposal.test.ts index ce6c6945..53121cc3 100644 --- a/test/integration/writer/proposal.test.ts +++ b/test/integration/writer/proposal.test.ts @@ -19,7 +19,7 @@ jest.mock('../../../src/helpers/moderation', () => { describe('writer/proposal', () => { describe('action()', () => { afterAll(async () => { - await db.queryAsync('DELETE FROM proposals'); + await db.queryAsync('DELETE FROM proposals where id in (?)', [['0x01', '0x02']]); await db.endAsync(); await sequencerDB.endAsync(); });