Skip to content

Commit

Permalink
#205 ExecutorClient test update get info by status
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsolt Lattmann committed Mar 11, 2015
1 parent e36a819 commit 41e505b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/middleware/executor/ExecutorClient.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,14 @@ describe('ExecutorClient', function () {
});

it('getInfo for non-existing hash should return 404', function (done) {
executorClient.getInfo('87704f10a36aa4214f5b0095ba8099e729a10f46', function (err/*, res*/) {
should.equal(err, 404);
done();
executorClient.getInfo('87704f10a36aa4214f5b0095ba8099e729a10f46', function (err, res) {
if (err) {
should.equal(err, 404);
done();
return;
}
console.log(res);
done(new Error('should have failed with 500'));
});
});

Expand Down

0 comments on commit 41e505b

Please sign in to comment.