diff --git a/src/dockerproxy.js b/src/dockerproxy.js index 35cc7be68..b7a46c3e0 100644 --- a/src/dockerproxy.js +++ b/src/dockerproxy.js @@ -62,7 +62,6 @@ function attachDockerRequest(req, res, next) { next(); } -// eslint-disable-next-line no-unused-vars async function containersCreate(req, res, next) { safe.set(req.body, 'HostConfig.NetworkMode', 'cloudron'); // overwrite the network the container lives in safe.set(req.body, 'NetworkingConfig', {}); // drop any custom network configs diff --git a/src/test/dockerproxy-test.js b/src/test/dockerproxy-test.js index 47e1634fa..c79a25499 100644 --- a/src/test/dockerproxy-test.js +++ b/src/test/dockerproxy-test.js @@ -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(); });