Node.js based forum software built for the modern web
fix test on redis
Barış Soner Uşaklı961be707258c
diff --git a/test/socket.io.js b/test/socket.io.jsindex d56a5b9a82..a4db2b7aaa 100644--- a/test/socket.io.js+++ b/test/socket.io.js@@ -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());});