Skip to content

Commit abe2cd2

Browse files
committed
linter fix
1 parent 5548caa commit abe2cd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cns/restserver/api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ func TestNMAgentNCListHandler(t *testing.T) {
13091309
req *http.Request
13101310
)
13111311

1312-
req, err = http.NewRequest(http.MethodGet, cns.NMAgentGetNCListAPIPath, nil)
1312+
req, err = http.NewRequest(http.MethodGet, cns.NMAgentGetNCListAPIPath, http.NoBody)
13131313
if err != nil {
13141314
t.Fatal(err)
13151315
}
@@ -1324,7 +1324,7 @@ func TestNMAgentNCListHandler(t *testing.T) {
13241324
}
13251325

13261326
fmt.Printf("nmAgentNCListHandler responded with %+v\n", nmAgentNCListResponse)
1327-
require.Len(t, nmAgentNCListResponse.NCList, 0)
1327+
require.Empty(t, nmAgentNCListResponse.NCList)
13281328
}
13291329

13301330
// Testing GetHomeAz API handler, return UnsupportedVerb if http method is not supported

0 commit comments

Comments
 (0)