aboutsummaryrefslogtreecommitdiff
path: root/tests/shared_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2024-07-01 13:15:00 +0200
committerStefan Majewsky <majewsky@gmx.net>2024-07-01 13:17:16 +0200
commit3c489c0e29486ce1a5900c4ff87f403ebbbb70fa (patch)
treed2db245860b4ae0d5c319aaba4f3aa3cb126808c /tests/shared_test.go
parent0fe0d65e49adf10a6a92a0412a2ec32e3d036b84 (diff)
downloadgo-schwift-3c489c0e29486ce1a5900c4ff87f403ebbbb70fa.tar.gz
fix autofixable lints
Diffstat (limited to 'tests/shared_test.go')
-rw-r--r--tests/shared_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/shared_test.go b/tests/shared_test.go
index cd3b109..a3ef610 100644
--- a/tests/shared_test.go
+++ b/tests/shared_test.go
@@ -43,7 +43,7 @@ func testWithAccount(t *testing.T, testCode func(a *schwift.Account)) {
var client *gophercloud.ServiceClient
if stAuth == "" && stUser == "" && stKey == "" {
- //option 1: Keystone authentication
+ // option 1: Keystone authentication
provider, err := clientconfig.AuthenticatedClient(context.TODO(), nil)
if err != nil {
t.Errorf("clientconfig.AuthenticatedClient returned: " + err.Error())
@@ -56,7 +56,7 @@ func testWithAccount(t *testing.T, testCode func(a *schwift.Account)) {
return
}
} else {
- //option 2: Swift authentication v1
+ // option 2: Swift authentication v1
provider, err := openstack.NewClient(stAuth)
if err != nil {
t.Errorf("openstack.NewClient returned: " + err.Error())
@@ -92,7 +92,7 @@ func testWithContainer(t *testing.T, testCode func(c *schwift.Container)) {
testCode(container)
- //cleanup
+ // cleanup
exists, err := container.Exists()
expectSuccess(t, err)
if exists {