Skip to content

Commit

Permalink
test: New nock returns proper error code
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Mar 28, 2018
1 parent f6f09b7 commit acb145c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util/download.js
Expand Up @@ -108,7 +108,7 @@ describe('download', function () {
nock.get('/package.tar.gz').times(6).delayConnection(1000).replyWithFile(200, source);
},
expectError: function (e) {
expect(e.code).to.be('ETIMEDOUT');
expect(e.code).to.be('ESOCKETTIMEDOUT');
expect(fs.readdirSync(tempDir.path)).to.be.empty();
},
downloadOpts: {
Expand Down

0 comments on commit acb145c

Please sign in to comment.