Skip to content

Commit e97c970

Browse files
divyenpateldougm
authored andcommitted
fix: use correct controlflag for vslm SetControlFlags API test
1 parent f8cf9ef commit e97c970

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vslm/client_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ func TestClient(t *testing.T) {
119119
t.Logf("volumeCreateResult %+v", volumeCreateResult)
120120
t.Logf("Volume created sucessfully. volumeId: %s", volumeId)
121121

122-
err = globalObjectManager.SetControlFlags(ctx, types.ID{Id: volumeId}, []string{"FCD_KEEP_AFTER_DELETE_VM"})
122+
err = globalObjectManager.SetControlFlags(ctx, types.ID{Id: volumeId}, []string{
123+
string(types.VslmVStorageObjectControlFlagKeepAfterDeleteVm)})
123124
if err != nil {
124125
t.Fatal(err)
125126
}

0 commit comments

Comments
 (0)