ランダムにテストがコケるのを修正 (#7553)
* Test shutdown * Revert "Test shutdown" This reverts commit 85182e7dd196cdd9ecb46cfb50adaabd04c5ba60. * Skip beforeShutdown in test * Wait shutdown in test * Revert "Skip beforeShutdown in test" This reverts commit 79c33ab53615e8fa4820d2abfc2494cba55c441c. * Revert "Revert "Skip beforeShutdown in test"" This reverts commit 3423133a137c79b64f3ff6ef9dbe433a441a47b0.
This commit is contained in:
@ -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';
|
||||
import { Note } from '../src/models/entities/note';
|
||||
import { initDb } from '../src/db/postgre';
|
||||
|
||||
@ -30,8 +30,8 @@ describe('Note', () => {
|
||||
bob = await signup({ username: 'bob' });
|
||||
}));
|
||||
|
||||
after(() => {
|
||||
p.kill();
|
||||
after(async () => {
|
||||
await shutdownServer(p);
|
||||
});
|
||||
|
||||
it('投稿できる', async(async () => {
|
||||
|
Reference in New Issue
Block a user