[VOL-5374] Upgrade go version to v1.23
Change-Id: I0d051ebfee3e4117e4f6d83f512c7ee791fd1d19
Signed-off-by: Akash Reddy Kankanala <akash.kankanala@radisys.com>
diff --git a/pkg/probe/probe_test.go b/pkg/probe/probe_test.go
index 846aa98..1b618be 100644
--- a/pkg/probe/probe_test.go
+++ b/pkg/probe/probe_test.go
@@ -18,12 +18,13 @@
import (
"context"
"encoding/json"
- "github.com/stretchr/testify/assert"
- "io/ioutil"
+ "io"
"net/http"
"net/http/httptest"
"testing"
"time"
+
+ "github.com/stretchr/testify/assert"
)
func TestServiceStatusString(t *testing.T) {
@@ -178,7 +179,7 @@
w := httptest.NewRecorder()
p.detailzFunc(w, req)
resp := w.Result()
- body, _ := ioutil.ReadAll(resp.Body)
+ body, _ := io.ReadAll(resp.Body)
assert.Equal(t, http.StatusOK, resp.StatusCode, "invalid status code for no services")
assert.Equal(t, "application/json", resp.Header.Get("Content-Type"), "wrong content type")