aboutsummaryrefslogtreecommitdiff
path: root/tests/object_test.go
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2022-10-26 15:23:04 +0200
committerSandro Jäckel <sandro.jaeckel@sap.com>2022-10-28 12:55:16 +0200
commit8b38a040830109f19550e7329b82ec5caf76b321 (patch)
tree13ecc54219914102f69fb59e005a836a88f78f5c /tests/object_test.go
parent4f67f4c0a59a850321b37a154efc9bde60539ca8 (diff)
downloadgo-schwift-8b38a040830109f19550e7329b82ec5caf76b321.tar.gz
Fix linting errors
Diffstat (limited to 'tests/object_test.go')
-rw-r--r--tests/object_test.go4
1 files changed, 1 insertions, 3 deletions
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:]))
})