Skip to content

Commit d615185

Browse files
committed
fix flaky e2e multisig tests
1 parent efffb9d commit d615185

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/scripts/e2e_subs/e2e-teal-multisig.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ ${gcmd} clerk send --amount 100000 --from ${ACCOUNT_MSIG} --to ${ACCOUNT_A} -L $
7777
echo "Auto-detection correctly used new mode on future consensus"
7878

7979
# Verify auto-detection used new mode (LMsig field)
80-
if ! cat ${TEMPDIR}/auto2.lsig | msgpacktool -d | grep -q '"lmsig"'; then
80+
msgpacktool -d < ${TEMPDIR}/auto2.lsig > ${TEMPDIR}/auto2.json
81+
if ! grep -q '"lmsig"' ${TEMPDIR}/auto2.json; then
8182
echo "ERROR: Auto-detection did not use new mode (LMsig field not found)"
8283
exit 1
8384
fi

test/scripts/e2e_subs/v32/e2e-teal-multisig.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ if [ $? -ne 0 ]; then
6565
exit 1
6666
fi
6767
echo "Auto-detection correctly used legacy mode on v32"
68-
if ! cat ${TEMPDIR}/auto2.lsig | msgpacktool -d | grep -q '"msig"'; then
68+
msgpacktool -d < ${TEMPDIR}/auto2.lsig > ${TEMPDIR}/auto2.json
69+
if ! grep -q '"msig"' ${TEMPDIR}/auto2.json; then
6970
echo "ERROR: Auto-detection did not use legacy mode (Msig field not found)"
7071
exit 1
7172
fi

0 commit comments

Comments
 (0)