Wait shutdown in test
This commit is contained in:
parent
79c33ab536
commit
8a9f736cde
6 changed files with 32 additions and 15 deletions
|
|
@ -12,7 +12,7 @@ process.env.NODE_ENV = 'test';
|
|||
|
||||
import * as assert from 'assert';
|
||||
import * as childProcess from 'child_process';
|
||||
import { async, signup, request, post, react, connectStream, launchServer } from './utils';
|
||||
import { async, signup, request, post, react, connectStream, launchServer, shutdownServer } from './utils';
|
||||
|
||||
describe('Mute', () => {
|
||||
let p: childProcess.ChildProcess;
|
||||
|
|
@ -28,8 +28,8 @@ describe('Mute', () => {
|
|||
carol = await signup({ username: 'carol' });
|
||||
}));
|
||||
|
||||
after(() => {
|
||||
p.kill();
|
||||
after(async () => {
|
||||
await shutdownServer(p);
|
||||
});
|
||||
|
||||
it('ミュート作成', async(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue