mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix: notification prune test
This commit is contained in:
@@ -467,8 +467,8 @@ describe('Notifications', () => {
|
|||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
notifications.prune((err) => {
|
notifications.prune((err) => {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
const week = 604800000;
|
const month = 2592000000;
|
||||||
db.sortedSetAdd('notifications', Date.now() - (2 * week), notification.nid, (err) => {
|
db.sortedSetAdd('notifications', Date.now() - (2 * month), notification.nid, (err) => {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
notifications.prune((err) => {
|
notifications.prune((err) => {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user