diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-27 08:39:31 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-09-09 06:07:22 +0300 |
commit | 9bc6df51b36a1e0f763b6ebc7974bb3d98aabf3a (patch) | |
tree | 28b88e9c3b6f2a16650164c15a28bfc62360763f /internal/domain | |
parent | 9dd40765e162aba80482abdf3ca8f788bec7a8db (diff) |
refactor: move away from ioutil (deprecated)
Diffstat (limited to 'internal/domain')
-rw-r--r-- | internal/domain/domain_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/domain/domain_test.go b/internal/domain/domain_test.go index f053001a..5a95b4ec 100644 --- a/internal/domain/domain_test.go +++ b/internal/domain/domain_test.go @@ -2,7 +2,7 @@ package domain import ( "fmt" - "io/ioutil" + "io" "net/http" "net/http/httptest" "testing" @@ -210,7 +210,7 @@ func TestServeNamespaceNotFound(t *testing.T) { defer resp.Body.Close() require.Equal(t, http.StatusNotFound, resp.StatusCode) - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) require.NoError(t, err) require.Contains(t, string(body), tt.expectedResponse) |