diff --git a/src/files.js b/src/files.js index 27964a34..55a06fde 100644 --- a/src/files.js +++ b/src/files.js @@ -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']) }) })