mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
revert: post queue changes to fix tests
This commit is contained in:
@@ -24,8 +24,8 @@
|
|||||||
"newbieChatMessageDelay": 120000,
|
"newbieChatMessageDelay": 120000,
|
||||||
"notificationSendDelay": 60,
|
"notificationSendDelay": 60,
|
||||||
"newbieReputationThreshold": 3,
|
"newbieReputationThreshold": 3,
|
||||||
"postQueue": 1,
|
"postQueue": 0,
|
||||||
"postQueueReputationThreshold": 1,
|
"postQueueReputationThreshold": 0,
|
||||||
"groupsExemptFromPostQueue": ["administrators", "Global Moderators"],
|
"groupsExemptFromPostQueue": ["administrators", "Global Moderators"],
|
||||||
"groupsExemptFromNewUserRestrictions": ["administrators", "Global Moderators"],
|
"groupsExemptFromNewUserRestrictions": ["administrators", "Global Moderators"],
|
||||||
"groupsExemptFromMaintenanceMode": ["administrators", "Global Moderators"],
|
"groupsExemptFromMaintenanceMode": ["administrators", "Global Moderators"],
|
||||||
|
|||||||
@@ -54,14 +54,6 @@ describe('Topic\'s', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('.post', () => {
|
describe('.post', () => {
|
||||||
before(() => {
|
|
||||||
meta.config.postQueue = 0;
|
|
||||||
});
|
|
||||||
|
|
||||||
after(() => {
|
|
||||||
meta.config.postQueue = 1;
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should fail to create topic with invalid data', async () => {
|
it('should fail to create topic with invalid data', async () => {
|
||||||
try {
|
try {
|
||||||
await apiTopics.create({ uid: 0 }, null);
|
await apiTopics.create({ uid: 0 }, null);
|
||||||
@@ -2345,12 +2337,6 @@ describe('Topic\'s', () => {
|
|||||||
content: 'The content of scheduled test topic',
|
content: 'The content of scheduled test topic',
|
||||||
timestamp: new Date(Date.now() + 86400000).getTime(),
|
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 () => {
|
it('should create a scheduled topic as pinned, deleted, included in "topics:scheduled" zset and with a timestamp in future', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user