Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jun 27, 2024
1 parent 69fe217 commit b61f079
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions testutil/testclient/testqueryclients/sharedquerier.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,24 @@ func NewTestSharedQueryClient(
).
AnyTimes()

sharedQuerier.EXPECT().
GetEarliestSupplierClaimCommitHeight(gomock.Any(), gomock.Any(), gomock.Any()).
DoAndReturn(
func(
ctx context.Context,
sessionEndHeight int64,
supplierAddr string,
) (int64, error) {
sharedParams := sharedtypes.DefaultParams()
return shared.GetEarliestSupplierClaimCommitHeight(
&sharedParams,
sessionEndHeight,
[]byte{},
supplierAddr,
), nil
},
).
AnyTimes()

return sharedQuerier
}

0 comments on commit b61f079

Please sign in to comment.