From 190fd4a084d2624142d0c511b9dd359743a85fdb Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 4 Jun 2024 00:17:06 +0200 Subject: [PATCH] Be less strict about diagnostic events length --- cmd/soroban-rpc/internal/test/simulate_transaction_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/soroban-rpc/internal/test/simulate_transaction_test.go b/cmd/soroban-rpc/internal/test/simulate_transaction_test.go index bb5de068..65c5767d 100644 --- a/cmd/soroban-rpc/internal/test/simulate_transaction_test.go +++ b/cmd/soroban-rpc/internal/test/simulate_transaction_test.go @@ -597,7 +597,7 @@ func TestSimulateTransactionError(t *testing.T) { result := simulateTransactionFromTxParams(t, client, params) assert.Greater(t, result.LatestLedger, uint32(0)) assert.Contains(t, result.Error, "MissingValue") - require.Len(t, result.Events, 1) + require.GreaterOrEqual(t, len(result.Events), 1) var event xdr.DiagnosticEvent require.NoError(t, xdr.SafeUnmarshalBase64(result.Events[0], &event)) }