From b86f9c7a202d1d1ef5c642852ad55c2e12eeb35d Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 26 Mar 2018 12:36:09 +0200 Subject: [PATCH] Ensure the tests work with other instances installed --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 5af7a18..1e382cb 100755 --- a/test/test.js +++ b/test/test.js @@ -293,7 +293,7 @@ return done(); it('can edit file', editFile); it('can restart app', function (done) { - execSync('cloudron restart --wait'); + execSync('cloudron restart --wait --app ' + app.id); done(); }); @@ -317,7 +317,7 @@ return done(); it('move to different location', function () { //browser.manage().deleteAllCookies(); // commented because of error "'Network.deleteCookie' wasn't found" - execSync('cloudron configure --wait --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); + execSync('cloudron configure --wait --location ' + LOCATION + '2 --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); var inspect = JSON.parse(execSync('cloudron inspect')); app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0]; expect(app).to.be.an('object');