test: stop sourceServer as well (#1314)

This commit is contained in:
Andrey Lushnikov 2020-03-10 10:23:17 -07:00 committed by GitHub
parent 38c3837b3e
commit 92aa4f375a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,10 +65,11 @@ beforeAll(async state => {
state.sourceServer.PREFIX = `http://localhost:${sourcePort}`;
});
afterAll(async({server, httpsServer}) => {
afterAll(async({server, sourceServer, httpsServer}) => {
await Promise.all([
server.stop(),
httpsServer.stop(),
sourceServer.stop(),
]);
});