From cb168b6f577d764d8d94e41fade0461e6dddbd47 Mon Sep 17 00:00:00 2001 From: Tsachi Herman <24438559+tsachiherman@users.noreply.github.com> Date: Wed, 13 Sep 2023 16:13:16 -0400 Subject: [PATCH] prevent test panic in case of a failuire. --- services/horizon/internal/integration/sac_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/horizon/internal/integration/sac_test.go b/services/horizon/internal/integration/sac_test.go index db654ecb8f..543dc48fd4 100644 --- a/services/horizon/internal/integration/sac_test.go +++ b/services/horizon/internal/integration/sac_test.go @@ -833,7 +833,7 @@ func assertEventPayments(itest *integration.Test, txHash string, asset xdr.Asset invokeHostFn := ops.Embedded.Records[0].(operations.InvokeHostFunction) assert.Equal(itest.CurrentTest(), invokeHostFn.Function, "HostFunctionTypeHostFunctionTypeInvokeContract") - assert.Equal(itest.CurrentTest(), 1, len(invokeHostFn.AssetBalanceChanges)) + require.Equal(itest.CurrentTest(), 1, len(invokeHostFn.AssetBalanceChanges)) assetBalanceChange := invokeHostFn.AssetBalanceChanges[0] assert.Equal(itest.CurrentTest(), assetBalanceChange.Amount, amount) assert.Equal(itest.CurrentTest(), assetBalanceChange.From, from)