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

fix: cat not found message in go-ipfs #183

Merged
merged 1 commit into from
Dec 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pgte the error message should be the same.

})
})

Expand Down