Skip to content

Commit 62c37da

Browse files
authored
Backport test install fix (#7280)
1 parent f7f4000 commit 62c37da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ rm -rf "$working_dir"
4040
mkdir -p "$working_dir"
4141
cd "$working_dir"
4242

43+
export BETTER_EXCEPTIONS=1
44+
4345
# Start ephemeral network in the background
44-
network_live_time=120
45-
timeout --signal=SIGINT --kill-after=${network_live_time}s --preserve-status ${network_live_time}s \
46-
"$INSTALL_PREFIX"/bin/sandbox.sh --verbose &
46+
network_live_time=60
47+
"$INSTALL_PREFIX"/bin/sandbox.sh --auto-shutdown --auto-shutdown-delay-s ${network_live_time} --verbose &
4748

4849
if poll_for_service_open ${network_live_time}; then
4950
echo "Error: Timeout waiting for service to open"
@@ -69,9 +70,8 @@ python ../../../python/ledger_tutorial.py ./workspace/sandbox_0/0.ledger
6970
# Recover network
7071
cp -r ./workspace/sandbox_0/0.ledger .
7172

72-
recovered_network_live_time=120
73-
timeout --signal=SIGINT --kill-after=${recovered_network_live_time}s --preserve-status ${recovered_network_live_time}s \
74-
"$INSTALL_PREFIX"/bin/sandbox.sh --verbose \
73+
recovered_network_live_time=10
74+
"$INSTALL_PREFIX"/bin/sandbox.sh --auto-shutdown --auto-shutdown-delay-s ${recovered_network_live_time} --verbose \
7575
--recover \
7676
--ledger-dir 0.ledger \
7777
--common-dir ./workspace/sandbox_common/

0 commit comments

Comments
 (0)