diff --git a/test/app-flow-test.js b/test/app-flow-test.js index 64d2509..f3a8e3b 100644 --- a/test/app-flow-test.js +++ b/test/app-flow-test.js @@ -67,7 +67,7 @@ describe('Application flow test', function () { cloudron.checkAddons(cloudron.appFqdn(location), owner); }); - it('can access exposed port', function (done) { + function checkExposedPort(done) { var client = new net.Socket(); var data = [ ]; client.connect(5151, cloudron.appFqdn(location), function() { @@ -81,6 +81,10 @@ describe('Application flow test', function () { done(new Error('bad response')); }); client.on('error', done); + } + + it('can access exposed port', function (done) { + checkExposedPort(done); }); it('displays app graphs', function () { @@ -96,6 +100,10 @@ describe('Application flow test', function () { cloudron.checkAddons(cloudron.appFqdn(location), owner); }); + it('can access exposed port', function (done) { + checkExposedPort(done); + }); + it('can reboot the cloudron', function () { cloudron.reboot(); }); @@ -104,6 +112,10 @@ describe('Application flow test', function () { cloudron.checkAddons(cloudron.appFqdn(location), owner); }); + it('can access exposed port', function (done) { + checkExposedPort(done); + }); + it('can uninstall app', function () { cloudron.uninstallApp(appId); });