From 397803958aaad9c436f890174fe58442496eea10 Mon Sep 17 00:00:00 2001 From: Bharath Sreekanth Date: Fri, 20 Sep 2024 17:12:31 +0000 Subject: [PATCH] fix lint issue --- nfs_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nfs_test.go b/nfs_test.go index 4e617ed..c87ad50 100644 --- a/nfs_test.go +++ b/nfs_test.go @@ -279,7 +279,7 @@ func TestCreateNAS(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { - t.Fatal(fmt.Errorf("wrong method. Expected %s; but got %s", http.MethodGet, r.Method)) + t.Fatal(fmt.Errorf("wrong method. Expected %s; but got %s", http.MethodPost, r.Method)) } if r.URL.Path != href { @@ -397,9 +397,9 @@ func TestPingNAS(t *testing.T) { ID: systemID, } - ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + ts := httptest.NewServer(http.HandlerFunc(func(_ http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { - t.Fatal(fmt.Errorf("wrong method. Expected %s; but got %s", http.MethodGet, r.Method)) + t.Fatal(fmt.Errorf("wrong method. Expected %s; but got %s", http.MethodPost, r.Method)) } if r.URL.Path != href {