diff options
author | Johannes Zellner <johannes@nebulon.de> | 2016-08-26 18:18:36 +0200 |
---|---|---|
committer | Johannes Zellner <johannes@nebulon.de> | 2016-08-26 18:18:36 +0200 |
commit | 8c87c0db33704755c3ff9a48fd0089d6ae72928d (patch) | |
tree | 39f8271f056ce43e7795450de9579c281c364589 | |
parent | 7c789cb51b1b69d87a511903d191493c5de68d96 (diff) | |
download | Surfer-8c87c0db33704755c3ff9a48fd0089d6ae72928d.tar.gz Surfer-8c87c0db33704755c3ff9a48fd0089d6ae72928d.tar.zst Surfer-8c87c0db33704755c3ff9a48fd0089d6ae72928d.zip |
Use appId in tests everywhere
-rw-r--r-- | test/test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.js b/test/test.js index 23338da..7e1e856 100644 --- a/test/test.js +++ b/test/test.js | |||
@@ -41,7 +41,7 @@ describe('Application life cycle test', function () { | |||
41 | done(); | 41 | done(); |
42 | }); | 42 | }); |
43 | 43 | ||
44 | var LOCATION = 'rctest'; | 44 | var LOCATION = 'surfer'; |
45 | var TEST_TIMEOUT = 10000; | 45 | var TEST_TIMEOUT = 10000; |
46 | var TEST_FILE_NAME_0 = 'index.html'; | 46 | var TEST_FILE_NAME_0 = 'index.html'; |
47 | var TEST_FILE_NAME_1 = 'test.txt'; | 47 | var TEST_FILE_NAME_1 = 'test.txt'; |
@@ -167,7 +167,7 @@ describe('Application life cycle test', function () { | |||
167 | 167 | ||
168 | it('move to different location', function () { | 168 | it('move to different location', function () { |
169 | browser.manage().deleteAllCookies(); | 169 | browser.manage().deleteAllCookies(); |
170 | execSync('cloudron install --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); | 170 | execSync('cloudron install --location ' + LOCATION + '2 --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); |
171 | var inspect = JSON.parse(execSync('cloudron inspect')); | 171 | var inspect = JSON.parse(execSync('cloudron inspect')); |
172 | app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0]; | 172 | app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0]; |
173 | expect(app).to.be.an('object'); | 173 | expect(app).to.be.an('object'); |