aboutsummaryrefslogtreecommitdiff
path: root/tests/object_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <stefan.majewsky@sap.com>2022-10-28 16:06:40 +0200
committerStefan Majewsky <stefan.majewsky@sap.com>2022-10-28 16:06:40 +0200
commit90dd519a948d06738479c04d331f28dfab99315c (patch)
treed4a9914cb73be3dbe9438b012a08408d79bdb7c9 /tests/object_test.go
parentfd6e57b6239655722884a49a86be0f051cc32bde (diff)
parent5cf9b60d2ded95d29827389a1a5901f1068d4337 (diff)
downloadgo-schwift-90dd519a948d06738479c04d331f28dfab99315c.tar.gz
Merge remote-tracking branch 'SuperSandro2000:sha2'
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:]))
})