Skip to content

Commit

Permalink
add the delete test back
Browse files Browse the repository at this point in the history
Signed-off-by: Boyang Lyu <[email protected]>
  • Loading branch information
JackL9u committed Aug 9, 2024
1 parent dc62cc2 commit 7adce30
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/integrations/client/http_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7adce30

Please sign in to comment.