dockerproxy: fix test
This commit is contained in:
@@ -13,7 +13,8 @@ const child_process = require('child_process'),
|
||||
constants = require('../constants.js'),
|
||||
dockerProxy = require('../dockerproxy.js'),
|
||||
expect = require('expect.js'),
|
||||
infra = require('../infra_version.js');
|
||||
infra = require('../infra_version.js'),
|
||||
syslogServer = require('../../syslog.js');
|
||||
|
||||
const DOCKER = `docker -H tcp://172.18.0.1:${constants.DOCKER_PROXY_PORT} `;
|
||||
|
||||
@@ -34,6 +35,7 @@ describe('Dockerproxy', function () {
|
||||
// create a container to test against
|
||||
before(async function () {
|
||||
await setup();
|
||||
await syslogServer.start();
|
||||
await dockerProxy.start();
|
||||
|
||||
const stdout = await exec(`${DOCKER} run -d ${infra.images.base} "bin/bash" "-c" "while true; do echo 'perpetual walrus'; sleep 1; done"`);
|
||||
@@ -43,6 +45,7 @@ describe('Dockerproxy', function () {
|
||||
after(async function () {
|
||||
await exec(`${DOCKER} rm -f ${containerId}`);
|
||||
await dockerProxy.stop();
|
||||
await syslogServer.stop();
|
||||
await cleanup();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user