@@ -675,6 +675,8 @@ func TestOntapNasStorageDriverVolumeClone(t *testing.T) {
675675 mockAPI .EXPECT ().VolumeExists (ctx , "" ).Return (false , nil )
676676 mockAPI .EXPECT ().VolumeCloneCreate (ctx , volConfig .InternalName , volConfig .CloneSourceVolumeInternal ,
677677 volConfig .CloneSourceSnapshotInternal , false ).Return (nil )
678+ mockAPI .EXPECT ().VolumeWaitForStates (ctx , volConfig .InternalName , gomock .Any (), gomock .Any (),
679+ maxFlexvolCloneWait ).Return ("online" , nil )
678680 mockAPI .EXPECT ().VolumeSetComment (ctx , volConfig .InternalName , volConfig .InternalName , "flexvol" ).
679681 Return (nil )
680682 mockAPI .EXPECT ().VolumeMount (ctx , volConfig .InternalName , "/" + volConfig .InternalName ).Return (nil )
@@ -946,6 +948,8 @@ func TestOntapNasStorageDriverVolumeClone_SMBShareCreateFail(t *testing.T) {
946948 mockAPI .EXPECT ().VolumeExists (ctx , "" ).Return (false , nil )
947949 mockAPI .EXPECT ().VolumeCloneCreate (ctx , volConfig .InternalName , volConfig .CloneSourceVolumeInternal ,
948950 volConfig .CloneSourceSnapshotInternal , false ).Return (nil )
951+ mockAPI .EXPECT ().VolumeWaitForStates (ctx , volConfig .InternalName , gomock .Any (), gomock .Any (),
952+ maxFlexvolCloneWait ).Return ("online" , nil )
949953 mockAPI .EXPECT ().VolumeSetComment (ctx , volConfig .InternalName , volConfig .InternalName , "flexvol" ).Return (nil )
950954 mockAPI .EXPECT ().VolumeMount (ctx , volConfig .InternalName , "/" + volConfig .InternalName ).Return (nil )
951955 mockAPI .EXPECT ().SMBShareExists (ctx , volConfig .InternalName ).Return (false , nil )
0 commit comments