Skip to content

Commit

Permalink
fix UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke committed Sep 5, 2024
1 parent 6ec92cb commit ac8dead
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/ccv/provider/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestCreateConsumer(t *testing.T) {
require.Equal(t, consumerMetadata, actualMetadata)
ownerAddress, err := providerKeeper.GetConsumerOwnerAddress(ctx, "0")
require.NoError(t, err)
require.Equal(t, "signer", ownerAddress)
require.Equal(t, "submitter", ownerAddress)
phase := providerKeeper.GetConsumerPhase(ctx, "0")
require.Equal(t, providertypes.CONSUMER_PHASE_REGISTERED, phase)

Expand All @@ -52,7 +52,7 @@ func TestCreateConsumer(t *testing.T) {
require.Equal(t, consumerMetadata, actualMetadata)
ownerAddress, err = providerKeeper.GetConsumerOwnerAddress(ctx, "1")
require.NoError(t, err)
require.Equal(t, "signer2", ownerAddress)
require.Equal(t, "submitter2", ownerAddress)
phase = providerKeeper.GetConsumerPhase(ctx, "1")
require.Equal(t, providertypes.CONSUMER_PHASE_REGISTERED, phase)
}
Expand Down Expand Up @@ -106,7 +106,7 @@ func TestUpdateConsumer(t *testing.T) {

expectedOwnerAddress := "cosmos1dkas8mu4kyhl5jrh4nzvm65qz588hy9qcz08la"
_, err = msgServer.UpdateConsumer(ctx,
&providertypes.MsgUpdateConsumer{Owner: "owner", ConsumerId: consumerId, NewOwnerAddress: expectedOwnerAddress,
&providertypes.MsgUpdateConsumer{Owner: "submitter", ConsumerId: consumerId, NewOwnerAddress: expectedOwnerAddress,
Metadata: &expectedConsumerMetadata,
InitializationParameters: &expectedInitializationParameters,
PowerShapingParameters: &expectedPowerShapingParameters})
Expand Down

0 comments on commit ac8dead

Please sign in to comment.