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

Commit 3bf4404

Browse files
committed
fix: don't error to specific
When stopping an IPFS node it returns an error. The error message depends on the environment. In Browsers it might also return `Failed to fetch` or `XHR error`. Hence removing the specific error check as it would fail for Browsers.
1 parent c4934ca commit 3bf4404

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/src/miscellaneous.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ module.exports = (common) => {
8686
it('.stop', (done) => {
8787
// TODO: go-ipfs returns an error, https://github.com/ipfs/go-ipfs/issues/4078
8888
ipfs.stop((err) => {
89-
if (err && err.message !== 'read ECONNRESET') {
90-
expect(err).to.not.exist()
91-
}
89+
// Retry
9290
ipfs.stop((err) => {
9391
expect(err).to.exist()
9492
done()

0 commit comments

Comments
 (0)