From ca8176312f4155db5f0f42583cc26dc973031d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 26 Feb 2021 22:37:57 -0500 Subject: [PATCH] fix: notification prune test --- test/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/notifications.js b/test/notifications.js index 7de0f93347..7ff53f3c60 100644 --- a/test/notifications.js +++ b/test/notifications.js @@ -467,8 +467,8 @@ describe('Notifications', () => { assert.ifError(err); notifications.prune((err) => { assert.ifError(err); - const week = 604800000; - db.sortedSetAdd('notifications', Date.now() - (2 * week), notification.nid, (err) => { + const month = 2592000000; + db.sortedSetAdd('notifications', Date.now() - (2 * month), notification.nid, (err) => { assert.ifError(err); notifications.prune((err) => { assert.ifError(err);