Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
insumity committed Jul 18, 2024
1 parent fde685e commit 58e6bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/ccv/provider/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ func TestAssignConsensusKeyMsgHandling(t *testing.T) {
mocks.MockStakingKeeper.EXPECT().GetValidator(
ctx, providerCryptoId.SDKValOpAddress(),
// validator should not be missing
).Return(providerCryptoId.SDKStakingValidator(), true).Times(1),
).Return(providerCryptoId.SDKStakingValidator(), nil).Times(1),
mocks.MockStakingKeeper.EXPECT().GetValidatorByConsAddr(ctx,
consumerConsAddr.ToSdkConsAddr(),
// return false - no other validator uses the consumer key to validate *on the provider*
).Return(stakingtypes.Validator{}, false),
).Return(stakingtypes.Validator{}, stakingtypes.ErrNoValidatorFound),
)
},
expError: true,
Expand Down

0 comments on commit 58e6bd2

Please sign in to comment.