Jelajahi Sumber

image width has changed

Girish Ramakrishnan 8 tahun lalu
induk
melakukan
b170fb1172
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      test/test.js

+ 2 - 2
test/test.js

@@ -161,7 +161,7 @@ describe('Application life cycle test', function () {
             var img = browser.findElement(by.xpath('//img[@src="/assets/uploads/profile/1-profileavatar.png"]'));
             return browser.executeScript('return arguments[0].complete && arguments[0].naturalWidth', img);
         }).then(function (imageWidth) {
-            done(imageWidth === 128 ? null : new Error('failed to load image'));
+            done(imageWidth === 200 ? null : new Error('failed to load image'));
         });
     }
 
@@ -203,7 +203,7 @@ describe('Application life cycle test', function () {
     it('can check image', checkImage);
 
     it('can restart app', function (done) {
-        execSync('cloudron restart --app ' + app.id);
+        execSync('cloudron restart --wait --app ' + app.id);
         done();
     });