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

Commit

Permalink
fix: cat not found message in go-ipfs (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte authored and daviddias committed Dec 12, 2017
1 parent 74cd2a1 commit 8e3645e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ module.exports = (common) => {
return ipfs.files.cat(smallFile.cid + '/does-not-exist')
.catch((err) => {
expect(err).to.exist()
expect(err.message).to.contain('No such file')
expect(err.message).to.oneOf([
'No such file',
'no link named "does-not-exist" under Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP'])
})
})

Expand Down

0 comments on commit 8e3645e

Please sign in to comment.