From 10350ea6f6101d4b28efd29affc87ed55d42386a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 9 Sep 2025 11:20:03 -0400 Subject: [PATCH] revert: post queue changes to fix tests --- install/data/defaults.json | 4 ++-- test/topics.js | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/install/data/defaults.json b/install/data/defaults.json index d90730d396..574a8bfe01 100644 --- a/install/data/defaults.json +++ b/install/data/defaults.json @@ -24,8 +24,8 @@ "newbieChatMessageDelay": 120000, "notificationSendDelay": 60, "newbieReputationThreshold": 3, - "postQueue": 1, - "postQueueReputationThreshold": 1, + "postQueue": 0, + "postQueueReputationThreshold": 0, "groupsExemptFromPostQueue": ["administrators", "Global Moderators"], "groupsExemptFromNewUserRestrictions": ["administrators", "Global Moderators"], "groupsExemptFromMaintenanceMode": ["administrators", "Global Moderators"], diff --git a/test/topics.js b/test/topics.js index 023b737bf3..eaae7d76c7 100644 --- a/test/topics.js +++ b/test/topics.js @@ -54,14 +54,6 @@ 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); @@ -2345,12 +2337,6 @@ 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 () => {