@@ -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