Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: make invalid url actually invalid
Browse files Browse the repository at this point in the history
I'm using one of those ISPs that 'helpfully' directs you to a search
page if the URL you are accessing does not have a DNS match.

The URL used in the test was well formed but not a real domain though
can be resolved, so this PR changes it to be something even a
web-breaking DNS server would refuse to resolve.
  • Loading branch information
achingbrain committed Oct 1, 2019
1 parent ac4d362 commit 30a84fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files-regular/add-from-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module.exports = (createCommon, options) => {
})

it('should not add from an invalid url', (done) => {
ipfs.addFromURL('http://invalid', (err, result) => {
ipfs.addFromURL('123http://invalid', (err, result) => {
expect(err).to.exist()
expect(result).to.not.exist()
done()
Expand Down

0 comments on commit 30a84fb

Please sign in to comment.