diff --git a/x/ccv/provider/handler_test.go b/x/ccv/provider/handler_test.go index 140cb45493..9c14efe91b 100644 --- a/x/ccv/provider/handler_test.go +++ b/x/ccv/provider/handler_test.go @@ -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,