ランダムにテストがコケるのを修正 (#7553)
* Test shutdown * Revert "Test shutdown" This reverts commit85182e7dd1. * Skip beforeShutdown in test * Wait shutdown in test * Revert "Skip beforeShutdown in test" This reverts commit79c33ab536. * Revert "Revert "Skip beforeShutdown in test"" This reverts commit3423133a13.
This commit is contained in:
parent
a5cdc9a1f4
commit
5d66bb8794
7 changed files with 34 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, uploadFile, launchServer } from './utils';
|
||||
import { async, signup, request, post, uploadFile, launchServer, shutdownServer } from './utils';
|
||||
|
||||
describe('users/notes', () => {
|
||||
let p: childProcess.ChildProcess;
|
||||
|
|
@ -37,8 +37,8 @@ describe('users/notes', () => {
|
|||
});
|
||||
}));
|
||||
|
||||
after(() => {
|
||||
p.kill();
|
||||
after(async() => {
|
||||
await shutdownServer(p);
|
||||
});
|
||||
|
||||
it('ファイルタイプ指定 (jpg)', async(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue