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

Commit ba0f20c

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 ba0f20c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

js/src/miscellaneous.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,11 @@ module.exports = (common) => {
8383
})
8484

8585
// must be last test to run
86-
it('.stop', (done) => {
86+
it('.stop', function (done) {
87+
this.timeout(10 * 1000)
8788
// TODO: go-ipfs returns an error, https://github.com/ipfs/go-ipfs/issues/4078
8889
ipfs.stop((err) => {
89-
if (err && err.message !== 'read ECONNRESET') {
90-
expect(err).to.not.exist()
91-
}
90+
// Retry
9291
ipfs.stop((err) => {
9392
expect(err).to.exist()
9493
done()

0 commit comments

Comments
 (0)