aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-19 00:57:57 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-19 01:01:52 +0200
commit60140d3f5ebb22ef30d7f1b82a220c620e031963 (patch)
tree5c5a088d4fa087375d2bd61e6ad75cdbe8070b3d /tests
parent587ac99d26a026c4441ce224f52105d2dbd3751b (diff)
downloadgo-schwift-60140d3f5ebb22ef30d7f1b82a220c620e031963.tar.gz
update golangci-lint config, fix new lints
Diffstat (limited to 'tests')
-rw-r--r--tests/shared_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/shared_test.go b/tests/shared_test.go
index 7cae4a5..4bef612 100644
--- a/tests/shared_test.go
+++ b/tests/shared_test.go
@@ -46,25 +46,25 @@ func testWithAccount(t *testing.T, testCode func(a *schwift.Account)) {
// option 1: Keystone authentication
provider, err := clientconfig.AuthenticatedClient(context.TODO(), nil)
if err != nil {
- t.Errorf("clientconfig.AuthenticatedClient returned: " + err.Error())
+ t.Error("clientconfig.AuthenticatedClient returned: " + err.Error())
t.Error("probably missing Swift credentials (need either ST_AUTH, ST_USER, ST_KEY or OS_* variables)")
return
}
client, err = openstack.NewObjectStorageV1(provider, gophercloud.EndpointOpts{})
if err != nil {
- t.Errorf("openstack.NewObjectStorageV1 returned: " + err.Error())
+ t.Error("openstack.NewObjectStorageV1 returned: " + err.Error())
return
}
} else {
// option 2: Swift authentication v1
provider, err := openstack.NewClient(stAuth)
if err != nil {
- t.Errorf("openstack.NewClient returned: " + err.Error())
+ t.Error("openstack.NewClient returned: " + err.Error())
return
}
client, err = swauth.NewObjectStorageV1(context.TODO(), provider, swauth.AuthOpts{User: stUser, Key: stKey})
if err != nil {
- t.Errorf("swauth.NewObjectStorageV1 returned: " + err.Error())
+ t.Error("swauth.NewObjectStorageV1 returned: " + err.Error())
return
}
}