You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/05/22 20:31:34 UTC

cordova-plugin-contacts git commit: CB-9056 Increased timeout of failing tests

Repository: cordova-plugin-contacts
Updated Branches:
  refs/heads/master 959fffad4 -> 8fd5a219b


CB-9056 Increased timeout of failing tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/8fd5a219
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/8fd5a219
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/8fd5a219

Branch: refs/heads/master
Commit: 8fd5a219b19b4992d36c071bfc26e3ad9c281638
Parents: 959fffa
Author: alsorokin <al...@akvelon.com>
Authored: Thu May 21 14:50:50 2015 +0300
Committer: alsorokin <al...@akvelon.com>
Committed: Thu May 21 14:50:50 2015 +0300

----------------------------------------------------------------------
 tests/tests.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/8fd5a219/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index f8b5615..86fc083 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -31,7 +31,8 @@ exports.defineAutoTests = function () {
     expect(true).toBe(false);
     done();
   };
-  
+
+  var MEDIUM_TIMEOUT = 30000;
 
   var removeContact = function(){
       if (gContactObj) {
@@ -344,7 +345,7 @@ exports.defineAutoTests = function () {
               // update note
               gContactObj.note = noteText;
               gContactObj.save(win, fail);
-          });
+          }, MEDIUM_TIMEOUT);
       });
       describe('Contact.remove method', function (done) {
           afterEach(removeContact);
@@ -374,7 +375,7 @@ exports.defineAutoTests = function () {
               // this is a bit risky as some devices may have contact ids that large
               var contact = new Contact("this string is supposed to be a unique identifier that will never show up on a device");
               contact.remove(rmWin, rmFail);
-          });
+          }, MEDIUM_TIMEOUT);
       });
       describe("Round trip Contact tests (creating + save + delete + find).", function () {
           afterEach(removeContact);
@@ -420,7 +421,7 @@ exports.defineAutoTests = function () {
                   obj.multiple=true;
                   navigator.contacts.find(["displayName", "name", "phoneNumbers", "emails"], findWin, findFail, obj);
               }, fail);
-          });
+          }, MEDIUM_TIMEOUT);
       });
       describe('ContactError interface', function () {
           it("contacts.spec.25 ContactError constants should be defined", function() {


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