From a5479e2d4a862741b6b24a15c9e09f6e77bc52c1 Mon Sep 17 00:00:00 2001 From: paulyufan2 Date: Wed, 17 Apr 2024 12:04:05 -0400 Subject: [PATCH] fix linter issue --- cns/restserver/v2/server_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cns/restserver/v2/server_test.go b/cns/restserver/v2/server_test.go index 9ba04ba57c..3c51630343 100644 --- a/cns/restserver/v2/server_test.go +++ b/cns/restserver/v2/server_test.go @@ -38,9 +38,9 @@ func TestStartServerWithCNSURL(t *testing.T) { logger.InitLogger("testlogs", 0, 0, "./") // Create the service with -c "localhost:8000" - url := "tcp://localhost:8500" - if err = startService("", url); err != nil { - t.Errorf("Failed to connect to CNS Service by this url:%s. Error: %v", url, err) + cnsURL := "tcp://localhost:8500" + if err = startService("", cnsURL); err != nil { + t.Errorf("Failed to connect to CNS Service by this cns url:%s. Error: %v", cnsURL, err) os.Exit(1) } }