From ba703806944b36b6add5e3e2eb57f3cee0026b84 Mon Sep 17 00:00:00 2001 From: pritsheth Date: Thu, 8 Feb 2024 15:28:46 -0800 Subject: [PATCH] Fix tests --- cmd/soroban-rpc/internal/transactions/transactions_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/soroban-rpc/internal/transactions/transactions_test.go b/cmd/soroban-rpc/internal/transactions/transactions_test.go index f0c0060d..1683f986 100644 --- a/cmd/soroban-rpc/internal/transactions/transactions_test.go +++ b/cmd/soroban-rpc/internal/transactions/transactions_test.go @@ -20,6 +20,7 @@ func expectedTransaction(t *testing.T, ledger uint32, feeBump bool) Transaction FeeBump: feeBump, ApplicationOrder: 1, Ledger: expectedLedgerInfo(ledger), + Events: [][]byte{}, } var err error tx.Result, err = transactionResult(ledger, feeBump).MarshalBinary() @@ -359,7 +360,7 @@ func TestGetTransactionsWithEventData(t *testing.T) { tx, ok, _ := store.GetTransaction(txHash(1, false)) require.True(t, ok) require.NotNil(t, tx.Events) - require.Len(t, len(tx.Events), 1) + require.Len(t, tx.Events, 1) } func stableHeapInUse() int64 {