Skip to content

Commit

Permalink
Tests: Fix flakey htlc test (#6017)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos authored Jun 7, 2024
1 parent d1e7725 commit 0c02f9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/scripts/e2e_subs/htlc-teal-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ ${gcmd} clerk send --fee=1000 --from-program ${TEMPDIR}/atomic.teal -a=0 -t=${ZE

# Check balance
BALANCEB=$(${gcmd} account balance -a ${ACCOUNTB} | awk '{ print $1 }')
if [ $BALANCEB -ne 9999000 ]; then
date "+htlc-teal-test FAIL wanted balance=9999000 but got ${BALANCEB} %Y%m%d_%H%M%S"
# Use >= 9999000 to account for rewards which may have accumulated
if [ $BALANCEB -lt 9999000 ]; then
date "+htlc-teal-test FAIL wanted balance>=9999000 but got ${BALANCEB} %Y%m%d_%H%M%S"
false
fi

Expand Down

0 comments on commit 0c02f9b

Please sign in to comment.