Repository: usergrid Updated Branches: refs/heads/master 3cfaff4ef -> 5c3e2594f
Add additional delay to node.js tests to allow for usergrid to finish asynchronous processing of notifications. Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/5c3e2594 Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/5c3e2594 Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/5c3e2594 Branch: refs/heads/master Commit: 5c3e2594f1dc7aec02002b470bd44514dcb7d846 Parents: 3cfaff4 Author: Michael Russo <[email protected]> Authored: Fri Feb 26 22:33:16 2016 -0800 Committer: Michael Russo <[email protected]> Committed: Fri Feb 26 22:33:16 2016 -0800 ---------------------------------------------------------------------- tests/integration/test/main.js | 17 +++++++++++------ .../test/notifications/notifications.js | 12 ++++++------ 2 files changed, 17 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/usergrid/blob/5c3e2594/tests/integration/test/main.js ---------------------------------------------------------------------- diff --git a/tests/integration/test/main.js b/tests/integration/test/main.js index 4d8341c..5a048bc 100644 --- a/tests/integration/test/main.js +++ b/tests/integration/test/main.js @@ -62,11 +62,16 @@ describe("** Usergrid REST Integration Tests **", function() { }); after(function(done) { this.timeout(180000); - console.log(" teardown"); - teardown.do(function(err) { - should(err).be.null; - console.log(" â".green + " done".grey); - done(); - }) + console.log(" teardown (sleep 5 sec before)"); + setTimeout(function(){ + + teardown.do(function(err) { + should(err).be.null; + console.log(" â".green + " done".grey); + done(); + }) + + }, 5000); + }); }); http://git-wip-us.apache.org/repos/asf/usergrid/blob/5c3e2594/tests/integration/test/notifications/notifications.js ---------------------------------------------------------------------- diff --git a/tests/integration/test/notifications/notifications.js b/tests/integration/test/notifications/notifications.js index 644510f..305b434 100644 --- a/tests/integration/test/notifications/notifications.js +++ b/tests/integration/test/notifications/notifications.js @@ -284,11 +284,11 @@ module.exports = { // wait a second before proceeding done(); - }, 1000); + }, 2000); }); - }, 1000) + }, 1500) }) @@ -312,11 +312,11 @@ module.exports = { // wait a second before proceeding done(); - }, 1000); + }, 2000); }); - }, 1000); + }, 1500); }) @@ -342,11 +342,11 @@ module.exports = { // wait a second before proceeding done(); - }, 1000); + }, 2000); }); - }, 1000); + }, 1500); })
