Skip to content

Commit e0662b0

Browse files
author
Ariel Kass
committed
fix revive linter issues
Signed-off-by: Ariel Kass <[email protected]>
1 parent c4d1c12 commit e0662b0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/client/replication-client_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,23 @@ func TestPromoteVolume(t *testing.T) {
7878
t.Parallel()
7979
// return success response
8080
mockedPromoteVolume := &fake.ReplicationClient{
81-
PromoteVolumeMock: func(_, _ string, force bool, _, _ map[string]string) (*replicationlib.PromoteVolumeResponse, error) {
81+
PromoteVolumeMock: func(_, _ string, _ bool, _, _ map[string]string) (*replicationlib.PromoteVolumeResponse, error) {
8282
return &replicationlib.PromoteVolumeResponse{}, nil
8383
},
8484
}
85-
force := false
8685
client := mockedPromoteVolume
87-
resp, err := client.PromoteVolume("", "", force, nil, nil)
86+
resp, err := client.PromoteVolume("", "", false, nil, nil)
8887
require.Equal(t, &replicationlib.PromoteVolumeResponse{}, resp)
8988
require.Nil(t, err)
9089

9190
// return error
9291
mockedPromoteVolume = &fake.ReplicationClient{
93-
PromoteVolumeMock: func(_, _ string, force bool, _, _ map[string]string) (*replicationlib.PromoteVolumeResponse, error) {
92+
PromoteVolumeMock: func(_, _ string, _ bool, _, _ map[string]string) (*replicationlib.PromoteVolumeResponse, error) {
9493
return nil, errors.New("failed to promote volume")
9594
},
9695
}
9796
client = mockedPromoteVolume
98-
resp, err = client.PromoteVolume("", "", force, nil, nil)
97+
resp, err = client.PromoteVolume("", "", false, nil, nil)
9998
require.Nil(t, resp)
10099
require.NotNil(t, err)
101100
}

0 commit comments

Comments
 (0)