ランダムにテストがコケるのを修正 (#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:
@@ -12,15 +12,15 @@ process.env.NODE_ENV = 'test';
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as childProcess from 'child_process';
|
||||
import { async, signup, request, post, launchServer } from './utils';
|
||||
import { async, signup, request, post, launchServer, shutdownServer } from './utils';
|
||||
|
||||
describe('API visibility', () => {
|
||||
let p: childProcess.ChildProcess;
|
||||
|
||||
before(launchServer(g => p = g));
|
||||
|
||||
after(() => {
|
||||
p.kill();
|
||||
after(async () => {
|
||||
await shutdownServer(p);
|
||||
});
|
||||
|
||||
describe('Note visibility', async () => {
|
||||
|
Reference in New Issue
Block a user