From e97c9708e5ec31205c4d97c398b644b3c54a9f1a Mon Sep 17 00:00:00 2001 From: Divyen Patel Date: Wed, 1 Jun 2022 14:47:26 -0700 Subject: [PATCH] fix: use correct controlflag for vslm SetControlFlags API test --- vslm/client_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vslm/client_test.go b/vslm/client_test.go index 5ed40f76f..ab09d6452 100644 --- a/vslm/client_test.go +++ b/vslm/client_test.go @@ -119,7 +119,8 @@ func TestClient(t *testing.T) { t.Logf("volumeCreateResult %+v", volumeCreateResult) t.Logf("Volume created sucessfully. volumeId: %s", volumeId) - err = globalObjectManager.SetControlFlags(ctx, types.ID{Id: volumeId}, []string{"FCD_KEEP_AFTER_DELETE_VM"}) + err = globalObjectManager.SetControlFlags(ctx, types.ID{Id: volumeId}, []string{ + string(types.VslmVStorageObjectControlFlagKeepAfterDeleteVm)}) if err != nil { t.Fatal(err) }