tests: remove unused sleep function and clean up afterAll hook
This commit is contained in:
parent
b3470d7ea0
commit
b283c9d070
@ -6,11 +6,9 @@ import {
|
||||
getRoom,
|
||||
deleteRoom,
|
||||
joinFakeParticipant,
|
||||
disconnectFakeParticipants,
|
||||
sleep
|
||||
disconnectFakeParticipants
|
||||
} from '../../../utils/helpers.js';
|
||||
import ms from 'ms';
|
||||
import { setupMultiRoomTestContext } from '../../../utils/test-scenarios.js';
|
||||
import { expectValidRoom } from '../../../utils/assertion-helpers.js';
|
||||
|
||||
describe('Room API Tests', () => {
|
||||
@ -18,9 +16,7 @@ describe('Room API Tests', () => {
|
||||
startTestServer();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
});
|
||||
afterAll(async () => {});
|
||||
|
||||
afterEach(async () => {
|
||||
// Remove all rooms created
|
||||
@ -133,8 +129,6 @@ describe('Room API Tests', () => {
|
||||
|
||||
await disconnectFakeParticipants();
|
||||
|
||||
await sleep('6s');
|
||||
|
||||
const responseAfterDelete = await getRoom(roomId);
|
||||
expect(responseAfterDelete.status).toBe(404);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user