From 7adce308af3e98620e6a3bb7e43cf390c6acd8be Mon Sep 17 00:00:00 2001 From: Boyang Lyu Date: Fri, 9 Aug 2024 16:05:46 +0800 Subject: [PATCH] add the delete test back Signed-off-by: Boyang Lyu --- tests/integrations/client/http_client_test.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/integrations/client/http_client_test.go b/tests/integrations/client/http_client_test.go index 8e261e1555b..c29d5fda400 100644 --- a/tests/integrations/client/http_client_test.go +++ b/tests/integrations/client/http_client_test.go @@ -888,11 +888,13 @@ func (suite *httpClientTestSuite) TestGetGCSafePoint() { re.Equal(list.ServiceGCSafepoints[i].SafePoint, val.SafePoint) } - // for i := 0; i < 3; i++ { - // msg, err := client.DeleteGCSafePoint(ctx, list.ServiceGCSafepoints[i].ServiceID) - // re.NoError(err) - // re.Equal("Delete service GC safepoint successfully.", msg) - // } + /* ************************** */ + for i := 0; i < 3; i++ { + msg, err := client.DeleteGCSafePoint(ctx, list.ServiceGCSafepoints[i].ServiceID) + re.NoError(err) + re.Equal("Delete service GC safepoint successfully.", msg) + } + /* ************************** */ _, err4 := client.DeleteGCSafePoint(ctx, "gc_worker") re.Error(err4)