From 8b38a040830109f19550e7329b82ec5caf76b321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 26 Oct 2022 15:23:04 +0200 Subject: Fix linting errors --- tests/object_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/object_test.go') diff --git a/tests/object_test.go b/tests/object_test.go index 1575a31..2f22b24 100644 --- a/tests/object_test.go +++ b/tests/object_test.go @@ -21,7 +21,6 @@ package tests import ( "bytes" "io" - "io/ioutil" "net/http" "strings" "testing" @@ -63,7 +62,6 @@ func TestObjectLifecycle(t *testing.T) { func TestObjectUpload(t *testing.T) { testWithContainer(t, func(c *schwift.Container) { - //test upload with bytes.Reader obj := c.Object("upload1") err := obj.Upload(bytes.NewReader(objectExampleContent), nil, nil) @@ -152,7 +150,7 @@ func TestObjectDownload(t *testing.T) { _, err = reader.Read(buf) expectSuccess(t, err) expectString(t, string(buf), string(objectExampleContent[4:8])) - buf, err = ioutil.ReadAll(reader) + buf, err = io.ReadAll(reader) expectSuccess(t, err) expectString(t, string(buf), string(objectExampleContent[8:])) }) -- cgit v1.2.3