Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed Oct 11, 2014
1 parent d595e54 commit c51a2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ describe('urllib-sync', function () {

it('should timeout', function () {
try {
urllib.request('http://www.baidu.com', {
urllib.request('http://npm.taobao.org', {
dataType: 'text',
timeout: 10
});
throw new Error('should not exec');
} catch (err) {
err.message.should.containEql('timeout');
err.message.should.match(/timeout/i);
}
});
});
Expand Down

0 comments on commit c51a2b1

Please sign in to comment.