fix: notification prune test

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 02f08111cf
commit ca8176312f

@ -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);

Loading…
Cancel
Save