-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
234 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
delay=10 | ||
retries=3 | ||
|
||
i=0 | ||
|
||
while true; do | ||
if (npx ava src/tests/controllers/"$1".test.ts --verbose --serial --timeout=2m); then | ||
break | ||
else | ||
((i++)) | ||
if [ $i -gt $retries ]; then | ||
echo DEBUG LOGS | ||
|
||
echo -e "\n\n== alice chans ==\n\n" | ||
docker exec alice-lnd.sphinx lncli -n regtest listchannels | ||
|
||
echo -e "\n\n=== bob chans ===\n\n" | ||
docker exec bob-lnd.sphinx lncli -n regtest --rpcserver=localhost:10010 listchannels | ||
|
||
echo -e "\n\n== carol chans ==\n\n" | ||
docker exec carol-lnd.sphinx lncli -n regtest --rpcserver=localhost:10011 listchannels | ||
|
||
echo -e "\n\n===== alice =====\n\n" | ||
docker logs alice.sphinx | ||
|
||
echo -e "\n\n====== bob ======\n\n" | ||
docker logs bob.sphinx | ||
|
||
echo -e "\n\n===== carol =====\n\n" | ||
docker logs carol.sphinx | ||
|
||
exit 1 | ||
fi | ||
echo Test failed, retrying in "$delay"s "($i/$retries)" | ||
sleep $delay | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,5 +41,4 @@ creds/* | |
!creds/scheduler_creds | ||
hsm_secret | ||
|
||
src/tests/configs/* | ||
src/tests/configs/nodes.json | ||
src/tests/configs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.