Skip to content

Commit 28d994e

Browse files
committed
Fix package io/ioutil is deprecated: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
1 parent 5d84a84 commit 28d994e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloud/component_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package cloud
33
import (
44
"context"
55
"fmt"
6-
"io/ioutil"
76
"net/http"
7+
"os"
88
"testing"
99
)
1010

@@ -35,7 +35,7 @@ func TestComponentService_Get(t *testing.T) {
3535
defer teardown()
3636
testAPIEndpoint := "/rest/api/3/component/42102"
3737

38-
raw, err := ioutil.ReadFile("../testing/mock-data/component_get.json")
38+
raw, err := os.ReadFile("../testing/mock-data/component_get.json")
3939
if err != nil {
4040
t.Error(err.Error())
4141
}

0 commit comments

Comments
 (0)