Repository: incubator-usergrid Updated Branches: refs/heads/two-dot-o-dev b9d2d3536 -> ea9389cd8
fix tests by adding sleep Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/a1577b6a Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/a1577b6a Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/a1577b6a Branch: refs/heads/two-dot-o-dev Commit: a1577b6ab39d925d99e50b27ba72929ba429c619 Parents: 6ad32c3 Author: Shawn Feldman <sfeld...@apache.org> Authored: Tue Aug 4 09:56:27 2015 -0600 Committer: Shawn Feldman <sfeld...@apache.org> Committed: Tue Aug 4 09:56:27 2015 -0600 ---------------------------------------------------------------------- stack/rest_integration_tests/lib/connections.js | 5 ++++- stack/rest_integration_tests/package.json | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/a1577b6a/stack/rest_integration_tests/lib/connections.js ---------------------------------------------------------------------- diff --git a/stack/rest_integration_tests/lib/connections.js b/stack/rest_integration_tests/lib/connections.js index a1b8fcb..841281d 100644 --- a/stack/rest_integration_tests/lib/connections.js +++ b/stack/rest_integration_tests/lib/connections.js @@ -20,7 +20,7 @@ var random = require("./random"); var responseLib = require("./response"); var async = require('async'); var request = require("request"); - +var sleep = require('sleep'); module.exports = { create: function(fromCollection, toCollection, relationship, cb) { async.parallel({ @@ -119,12 +119,15 @@ module.exports = { fromCollection + "/" + results.from.uuid + "/" + relationship + "/" + + //toCollection + "/" + results.to.uuid; url = urls.appendOrgCredentials(url); + sleep.sleep(1); request.del({ url: url, json: true }, function(e, r, body) { + sleep.sleep(1); module.exports.get(fromCollection, toCollection, relationship, function(err, results) { cb(err, results); }); http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/a1577b6a/stack/rest_integration_tests/package.json ---------------------------------------------------------------------- diff --git a/stack/rest_integration_tests/package.json b/stack/rest_integration_tests/package.json index 7733992..bad9cbc 100644 --- a/stack/rest_integration_tests/package.json +++ b/stack/rest_integration_tests/package.json @@ -3,13 +3,14 @@ "version": "0.0.1", "devDependencies": { "async": "^1.2.1", + "colors": "~1.1.2", + "i": "~0.3.3", "mocha": "~2.2.5", "request": "~2.58.0", "should": "~6.0.3", + "sleep": "^3.0.0", "underscore": "^1.8.3", - "uuid": "^2.0.1", - "colors": "~1.1.2", - "i": "~0.3.3" + "uuid": "^2.0.1" }, "engines": { "node": ">0.12.1"