Skip to content

Commit 4624e33

Browse files
committed
Fix unit tests error messages
1 parent 6260b9d commit 4624e33

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

data/transactions/transaction_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func TestWellFormedErrors(t *testing.T) {
305305
},
306306
spec: specialAddr,
307307
proto: protoV27,
308-
expectedError: fmt.Errorf("tx.ExtraProgramPages too large, max number of extra pages is %d", protoV27.MaxExtraAppProgramPages),
308+
expectedError: fmt.Errorf("tx.ExtraProgramPages exceeds MaxExtraAppProgramPages = %d", protoV27.MaxExtraAppProgramPages),
309309
},
310310
{
311311
tx: Transaction{
@@ -392,7 +392,7 @@ func TestWellFormedErrors(t *testing.T) {
392392
},
393393
spec: specialAddr,
394394
proto: futureProto,
395-
expectedError: fmt.Errorf("tx.ExtraProgramPages too large, max number of extra pages is %d", futureProto.MaxExtraAppProgramPages),
395+
expectedError: fmt.Errorf("tx.ExtraProgramPages exceeds MaxExtraAppProgramPages = %d", futureProto.MaxExtraAppProgramPages),
396396
},
397397
{
398398
tx: Transaction{
@@ -457,7 +457,7 @@ func TestWellFormedErrors(t *testing.T) {
457457
},
458458
spec: specialAddr,
459459
proto: futureProto,
460-
expectedError: fmt.Errorf("tx has too many references, max is 8"),
460+
expectedError: fmt.Errorf("tx references exceed MaxAppTotalTxnReferences = 8"),
461461
},
462462
{
463463
tx: Transaction{

test/e2e-go/cli/goal/expect/statefulTealCreateAppTest.exp

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ proc statefulTealTest { TEST_ALGO_DIR TEST_DATA_DIR TEAL_PROGRAM} {
121121
spawn goal app create --creator $PRIMARY_ACCOUNT_ADDRESS --approval-prog ${TEAL_PROGS_DIR}/${TEAL_PROGRAM} --global-byteslices $GLOBAL_BYTE_SLICES --global-ints 0 --local-byteslices $LOCAL_BYTE_SLICES --local-ints 0 --app-arg "str:hello" --clear-prog ${TEAL_PROGS_DIR}/${TEAL_PROGRAM} --extra-pages 5 -w $PRIMARY_WALLET_NAME -d $TEST_PRIMARY_NODE_DIR
122122
expect {
123123
timeout { puts timeout; ::AlgorandGoal::Abort "\n Failed to see expected output" }
124-
"tx.ExtraProgramPages too large, max number of extra pages is 3" {puts "received expected error"; close}
124+
"tx.ExtraProgramPages exceeds MaxExtraAppProgramPages = 3" {puts "received expected error"; close}
125125
eof { close; ::AlgorandGoal::Abort "did not receive expected error" }
126126
}
127127

0 commit comments

Comments
 (0)