Skip to content

Commit

Permalink
remove test to unbreak core (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec authored Nov 13, 2024
1 parent ad26f60 commit 8a7a997
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions pkg/types/interfacetests/chain_components_interface_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,40 +220,6 @@ func runContractReaderGetLatestValueInterfaceTests[T TestingT[T]](t T, tester Ch
assert.Equal(t, &secondItem, actual)
},
},
{
Name: ContractReaderGetLatestValueWithHeadData,
Test: func(t T) {
ctx := tests.Context(t)
firstItem := CreateTestStruct(0, tester)

contracts := tester.GetBindings(t)
_ = SubmitTransactionToCW(t, tester, MethodSettingStruct, firstItem, contracts[0], types.Unconfirmed)

secondItem := CreateTestStruct(1, tester)

_ = SubmitTransactionToCW(t, tester, MethodSettingStruct, secondItem, contracts[0], types.Unconfirmed)

cr := tester.GetContractReader(t)
bindings := tester.GetBindings(t)
bound := BindingsByName(bindings, AnyContractName)[0] // minimum of one bound contract expected, otherwise panics

require.NoError(t, cr.Bind(ctx, bindings))

actual := &TestStruct{}
params := &LatestParams{I: 1}
headData, err := cr.GetLatestValueWithHeadData(ctx, bound.ReadIdentifier(MethodTakingLatestParamsReturningTestStruct), primitives.Unconfirmed, params, actual)
require.NoError(t, err)
require.NotNil(t, headData)
assert.Equal(t, &firstItem, actual)

params.I = 2
actual = &TestStruct{}
headData, err = cr.GetLatestValueWithHeadData(ctx, bound.ReadIdentifier(MethodTakingLatestParamsReturningTestStruct), primitives.Unconfirmed, params, actual)
require.NoError(t, err)
require.NotNil(t, headData)
assert.Equal(t, &secondItem, actual)
},
},
{
Name: ContractReaderGetLatestValueWithPrimitiveReturn,
Test: func(t T) {
Expand Down

0 comments on commit 8a7a997

Please sign in to comment.