-
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
18 changed files
with
393 additions
and
128 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/ |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.