fix: ipfsd-ctl should await for subprocess
This commit is contained in:
parent
d20a84b164
commit
153da866f0
@ -14,8 +14,8 @@ implementation to use either version internally.
|
||||
|
||||
diff --git a/packages/interface-ipfs-core/src/refs-local.js b/packages/interface-ipfs-core/src/refs-local.js
|
||||
index d20851de..33a94c74 100644
|
||||
--- a/packages/interface-ipfs-core/src/refs-local.js
|
||||
+++ b/packages/interface-ipfs-core/src/refs-local.js
|
||||
--- a/interface-ipfs-core/src/refs-local.js
|
||||
+++ b/interface-ipfs-core/src/refs-local.js
|
||||
@@ -7,6 +7,7 @@ const all = require('it-all')
|
||||
const importer = require('ipfs-unixfs-importer')
|
||||
const drain = require('it-drain')
|
||||
|
10
conformance/patches/await_subprocess.patch
Normal file
10
conformance/patches/await_subprocess.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- node_modules/ipfsd-ctl/src/ipfsd-daemon.js 2020-03-06 15:26:44.365192780 +0200
|
||||
+++ node_modules/ipfsd-ctl/src/ipfsd-daemon.js 2020-07-20 14:54:43.353680062 +0300
|
||||
@@ -260,6 +250,7 @@
|
||||
|
||||
try {
|
||||
await this.api.stop()
|
||||
+ await this.subprocess;
|
||||
} catch (err) {
|
||||
if (!killed) {
|
||||
throw err // if was killed then ignore error
|
@ -21,6 +21,6 @@ if [ -d "patches" ]; then
|
||||
# and node_modules are ignored.
|
||||
for p in patches/*; do
|
||||
echo "Applying $(basename "$p")..." >&2
|
||||
patch -d node_modules/interface-ipfs-core/ -p3 < "$p"
|
||||
patch -d node_modules/ -p1 < "$p"
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user