From 3c489c0e29486ce1a5900c4ff87f403ebbbb70fa Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 1 Jul 2024 13:15:00 +0200 Subject: fix autofixable lints --- tests/shared_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/shared_test.go') 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 { -- cgit v1.2.3