From 9bfce68b5eea7bc91edb24939761bbe82d434c69 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 5 Sep 2025 14:39:23 -0400 Subject: [PATCH] test: disable post queue when testing posting logic --- test/topics.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/topics.js b/test/topics.js index eaae7d76c7..023b737bf3 100644 --- a/test/topics.js +++ b/test/topics.js @@ -54,6 +54,14 @@ describe('Topic\'s', () => { }); describe('.post', () => { + before(() => { + meta.config.postQueue = 0; + }); + + after(() => { + meta.config.postQueue = 1; + }); + it('should fail to create topic with invalid data', async () => { try { await apiTopics.create({ uid: 0 }, null); @@ -2337,6 +2345,12 @@ describe('Topic\'s', () => { content: 'The content of scheduled test topic', timestamp: new Date(Date.now() + 86400000).getTime(), }; + + meta.config.postQueue = 0; + }); + + after(() => { + meta.config.postQueue = 1; }); it('should create a scheduled topic as pinned, deleted, included in "topics:scheduled" zset and with a timestamp in future', async () => {