use a IETF reserved domain name for invalid dns test

This commit is contained in:
David Frank 2016-04-06 02:01:07 +08:00
parent d28febd497
commit 2ebaee639f
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ describe('node-fetch', function() {
});
it('should handle DNS-error response', function() {
url = 'http://invalid.commm';
url = 'http://domain.invalid';
return expect(fetch(url)).to.eventually.be.rejected
.and.be.an.instanceOf(FetchError)
.and.have.property('code', 'ENOTFOUND');