Skip to content

Commit

Permalink
prevent test panic in case of a failuire.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsachiherman committed Sep 13, 2023
1 parent a2c1703 commit cb168b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/horizon/internal/integration/sac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb168b6

Please sign in to comment.