From fafb102530ac0bf2bce7be77675fe248cc465335 Mon Sep 17 00:00:00 2001 From: NotGonnaGitUs Date: Mon, 4 May 2015 16:36:20 +0530 Subject: [PATCH] Is it async causing test to fail? Trying to make waterfall work. --- test/api.mocha.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api.mocha.coffee b/test/api.mocha.coffee index 751cf5c22c..c638517a27 100644 --- a/test/api.mocha.coffee +++ b/test/api.mocha.coffee @@ -479,13 +479,13 @@ describe "API", -> cb() ], done - it "Creates a challenge with prize", (done) -> + it "User creates a challenge with prize", (done) -> User.findByIdAndUpdate _id, $set: "balance": 8 , (err, _user) -> expect(err).to.not.be.ok() - async.parallel [ + async.waterfall [ (cb) -> request.post(baseURL + "/challenges").send( group: group._id