This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new e20afdc  fix(spec/create): handle createAndBuild promises (#1171)
e20afdc is described below

commit e20afdc73c4e960be6758e3c5ea78fbdf11f4ca3
Author: Raphael von der Grün <raphine...@gmail.com>
AuthorDate: Wed Nov 3 16:55:49 2021 +0100

    fix(spec/create): handle createAndBuild promises (#1171)
---
 tests/spec/create.spec.js | 27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/tests/spec/create.spec.js b/tests/spec/create.spec.js
index 528733c..b8d8747 100644
--- a/tests/spec/create.spec.js
+++ b/tests/spec/create.spec.js
@@ -52,59 +52,68 @@ function createAndBuild (projectname, projectid) {
 }
 
 describe('create', () => {
+    let prevTimeout;
+    beforeAll(() => {
+        prevTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
+        jasmine.DEFAULT_TIMEOUT_INTERVAL = 60 * 1000;
+    });
+    afterAll(() => {
+        jasmine.DEFAULT_TIMEOUT_INTERVAL = prevTimeout;
+    });
+
     it('Test#001 : create project with ascii name, no spaces', () => {
         const projectname = 'testcreate';
         const projectid = 'com.test.app1';
 
-        createAndBuild(projectname, projectid);
-    });
+        return createAndBuild(projectname, projectid);
+    }, 240 * 1000); // first build takes longer (probably cold caches)
 
     it('Test#002 : create project with ascii name, and spaces', () => {
         const projectname = 'test create';
         const projectid = 'com.test.app2';
 
-        createAndBuild(projectname, projectid);
+        return createAndBuild(projectname, projectid);
     });
 
     it('Test#003 : create project with unicode name, no spaces', () => {
         const projectname = '応応応応用用用用';
         const projectid = 'com.test.app3';
 
-        createAndBuild(projectname, projectid);
+        return createAndBuild(projectname, projectid);
     });
 
     it('Test#004 : create project with unicode name 2, no spaces', () => {
         const projectname = 'إثرا';
         const projectid = 'com.test.app3.2';
 
-        createAndBuild(projectname, projectid);
+        return createAndBuild(projectname, projectid);
     });
 
     it('Test#005 : create project with unicode name, and spaces', () => {
         const projectname = '応応応応 用用用用';
         const projectid = 'com.test.app4';
 
-        createAndBuild(projectname, projectid);
+        return createAndBuild(projectname, projectid);
     });
 
     it('Test#006 : create project with ascii+unicode name, no spaces', () => {
         const projectname = '応応応応hello用用用用';
         const projectid = 'com.test.app5';
 
-        createAndBuild(projectname, projectid);
+        return createAndBuild(projectname, projectid);
     });
 
     it('Test#007 : create project with ascii+unicode name, and spaces', () => {
         const projectname = '応応応応 hello 用用用用';
         const projectid = 'com.test.app6';
 
-        createAndBuild(projectname, projectid);
+        return createAndBuild(projectname, projectid);
     });
 
     it('Test#008 : create project with ascii name, and spaces, ampersand(&)', 
() => {
         const projectname = 'hello & world';
         const projectid = 'com.test.app7';
 
-        createAndBuild(projectname, projectid);
+        return createAndBuild(projectname, projectid);
     });
 });

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to