Skip to content

Commit

Permalink
Fixed a hanging test
Browse files Browse the repository at this point in the history
  • Loading branch information
abalmos committed Oct 1, 2014
1 parent e38254e commit cd0bed7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/lookup.test.js
Expand Up @@ -211,12 +211,16 @@ describe('lookup', function() {
it('should fail if OADA configuration cannot be found', function(done) {
nock.cleanAll();

nock(mockUrl)
.get('/.well-known/oada-configuration')
.reply(404);

var options = {
timeout: 10
};

lookup.clientRegistration(clientId, options, function(err) {
expect(err.timeout).to.equal(options.timeout);
lookup.clientRegistration(clientId, options, function(err, c) {
expect(err.status).to.equal(404);

done();
});
Expand Down

0 comments on commit cd0bed7

Please sign in to comment.