Parcourir la source

test restart as well

Girish Ramakrishnan il y a 6 ans
Parent
commit
936fc70c6f
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      test/test.js

+ 7 - 0
test/test.js

@@ -190,6 +190,13 @@ describe('Application life cycle test SSO', function () {
     it('can create user story', createUserStory);
     it('user story exists', userStoryExists);
 
+    it('can restart app', function (done) {
+        execSync('cloudron restart --wait --app ' + app.id);
+        done();
+    });
+
+    it('user story is still present', userStoryExists);
+
     it('backup app', function () {
         execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });