Skip to content

Commit

Permalink
Accidentally deleted a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Feb 11, 2025
1 parent 5a8b1fb commit 2b35bcb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions integration-tests/relayinterface/chain_components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,31 @@ func RunContractReaderInLoopTests[T WrappedTestingT[T]](t T, it ChainComponentsI
require.Equal(t, expectedMRR, mRR)
},
},
{
Name: ContractReaderGetLatestValueUsingMultiReader,
Test: func(t T) {
cr := it.GetContractReader(t)
bindings := it.GetBindings(t)
ctx := tests.Context(t)

bound := BindingsByName(bindings, AnyContractName)[0]

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

type MultiReadResult struct {
A uint8
B int16
U string
V bool
}

mRR := MultiReadResult{}
require.NoError(t, cr.GetLatestValue(ctx, bound.ReadIdentifier(MultiRead), primitives.Unconfirmed, nil, &mRR))

expectedMRR := MultiReadResult{A: 1, B: 2, U: "Hello", V: true}
require.Equal(t, expectedMRR, mRR)
},
},
{
Name: ContractReaderGetLatestValueUsingMultiReaderWithParmsReuse,
Test: func(t T) {
Expand Down

0 comments on commit 2b35bcb

Please sign in to comment.