From dd857aa27020af13944ce6e3a6000edf72880615 Mon Sep 17 00:00:00 2001 From: paulyufan2 Date: Tue, 16 Apr 2024 13:52:07 -0400 Subject: [PATCH] UT needs to stop service --- cns/restserver/v2/server_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cns/restserver/v2/server_test.go b/cns/restserver/v2/server_test.go index f5c378417ee..a0bd18f75f5 100644 --- a/cns/restserver/v2/server_test.go +++ b/cns/restserver/v2/server_test.go @@ -107,5 +107,7 @@ func startService(cnsPort, cnsURL string) error { return errors.Wrapf(err, "Failed to check reachability to urls %+v", urls) } + service.Stop() + return nil }