Skip to content

Commit 679bcbe

Browse files
committed
move trap line to head
1 parent 0cc3fc5 commit 679bcbe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/tests/butterflynet_check.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ set -euxo pipefail
55

66
source "$(dirname "$0")/harness.sh"
77

8+
function shutdown {
9+
kill -KILL $FOREST_NODE_PID
10+
}
11+
12+
trap shutdown EXIT
13+
814
function call_forest_chain_head {
915
curl --silent -X POST -H "Content-Type: application/json" \
1016
--data '{"jsonrpc":"2.0","id":2,"method":"Filecoin.ChainHead","param":"null"}' \
@@ -20,9 +26,3 @@ until call_forest_chain_head; do
2026
done
2127

2228
forest_wait_for_sync
23-
24-
function shutdown {
25-
kill -KILL $FOREST_NODE_PID
26-
}
27-
28-
trap shutdown EXIT

0 commit comments

Comments
 (0)