Skip to content

Commit

Permalink
Quicker test
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Mar 18, 2017
1 parent acaf84d commit 4a5597e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,14 @@ describe('request', function(){
} catch(e) { done(e); }
});

req.on('error', function(error){
done(error);
});
req.on('abort', done);

setTimeout(function() {
req.abort();
}, 1000);
}, 500);
})

it('should allow chaining .abort() several times', function(done){
Expand Down

0 comments on commit 4a5597e

Please sign in to comment.