Skip to content

Commit

Permalink
[Tests] Fix scenario where nethermind stops before capturing extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilchodola authored Nov 5, 2024
1 parent 02a14a0 commit 793e25e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/sync-supported-chains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
docker logs -f "$container_name" | while read -r line; do
echo "$line"
if [[ "$line" == *"All done"* ]]; then
if [[ "$line" == *"Nethermind is shut down"* ]]; then
echo "Unexpected termination detected: $line"
exit 1
fi
Expand Down Expand Up @@ -262,6 +262,11 @@ jobs:
exit 0
fi
done

if [ "$found_bad_log" = true ]; then
echo "Error detected, but the logs stopped unexpectedly. Exiting."
exit 1
fi

- name: Get Consensus Logs
if: always() && matrix.config.network != 'joc-mainnet' && matrix.config.network != 'joc-testnet' && matrix.config.network != 'linea-mainnet' && matrix.config.network != 'linea-sepolia'
Expand Down

0 comments on commit 793e25e

Please sign in to comment.