Node.js based forum software built for the modern web
test: dont create users parallel
Barış Soner Uşaklı09183ac0620c
diff --git a/test/socket.io.js b/test/socket.io.jsindex 45ffb43dd8..209f8dc056 100644--- a/test/socket.io.js+++ b/test/socket.io.js@@ -30,20 +30,14 @@ describe('socket.io', () => {let regularUid;before(async () => {- const data = await Promise.all([- user.create({ username: 'admin', password: 'adminpwd' }),- user.create({ username: 'regular', password: 'regularpwd', email: '[email protected]' }, { emailVerification: 'verify' }),- categories.create({- name: 'Test Category',- description: 'Test category created by testing script',- }),- ]);- adminUid = data[0];+ adminUid = await user.create({ username: 'admin', password: 'adminpwd' });await groups.join('administrators', adminUid);+ regularUid = await user.create({ username: 'regular', password: 'regularpwd', email: '[email protected]' }, { emailVerification: 'verify' });+ ({ cid } = await categories.create({+ name: 'Test Category',+ description: 'Test category created by testing script',+ }));- regularUid = data[1];-- cid = data[2].cid;await topics.post({uid: adminUid,cid: cid,