mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
Augment every task spawned by Service with on_exit (#3581)
* Augment every task spawned by Service with `on_exit` * Add CI test that the node exits
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Script that checks that a node exits after `SIGINT` was send.
|
||||
|
||||
set -e
|
||||
|
||||
cargo build --release
|
||||
./target/release/substrate --dev &
|
||||
PID=$!
|
||||
|
||||
# Let the chain running for 60 seconds
|
||||
sleep 60
|
||||
|
||||
# Send `SIGINT` and give the process 30 seconds to end
|
||||
kill -INT $PID
|
||||
timeout 30 tail --pid=$PID -f /dev/null
|
||||
Reference in New Issue
Block a user