mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
fix test on redis
This commit is contained in:
@@ -688,6 +688,8 @@ describe('socket.io', () => {
|
||||
const uid = await user.create({ username: 'forceme', password: '123345' });
|
||||
await socketAdmin.user.forcePasswordReset({ uid: adminUid }, [uid]);
|
||||
const pwExpiry = await user.getUserField(uid, 'passwordExpiry');
|
||||
const sleep = util.promisify(setTimeout);
|
||||
await sleep(500);
|
||||
assert(pwExpiry > then && pwExpiry < Date.now());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user