ランダムにテストがコケるのを修正 (#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,7 +12,7 @@ process.env.NODE_ENV = 'test';
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as childProcess from 'child_process';
|
||||
import { async, launchServer, signup, post, request, simpleGet, port } from './utils';
|
||||
import { async, launchServer, signup, post, request, simpleGet, port, shutdownServer } from './utils';
|
||||
import * as openapi from '@redocly/openapi-core';
|
||||
|
||||
// Request Accept
|
||||
@@ -39,8 +39,8 @@ describe('Fetch resource', () => {
|
||||
});
|
||||
}));
|
||||
|
||||
after(() => {
|
||||
p.kill();
|
||||
after(async () => {
|
||||
await shutdownServer(p);
|
||||
});
|
||||
|
||||
describe('Common', () => {
|
||||
|
Reference in New Issue
Block a user