From e19ac5578148383fe766a95935b4925f707b059e Mon Sep 17 00:00:00 2001 From: Functionary Robot Date: Thu, 19 Apr 2018 16:29:04 +1000 Subject: [PATCH] openstack/compute/v2/extensions/adminactions: fix errors found by vet Vet found the following errors: openstack/compute/v2/extensions/adminactions/requests_test.go:38: result of fmt.Errorf call not used openstack/compute/v2/extensions/adminactions/requests_test.go:54: result of fmt.Errorf call not used openstack/compute/v2/extensions/adminactions/requests_test.go:70: result of fmt.Errorf call not used These calls to fmt.Errorf should instead be calls to t.Errorf. --- .../compute/v2/extensions/adminactions/requests_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/openstack/compute/v2/extensions/adminactions/requests_test.go b/openstack/compute/v2/extensions/adminactions/requests_test.go index 323cebba..9b3904cf 100644 --- a/openstack/compute/v2/extensions/adminactions/requests_test.go +++ b/openstack/compute/v2/extensions/adminactions/requests_test.go @@ -1,7 +1,6 @@ package adminactions import ( - "fmt" "testing" th "github.com/rackspace/gophercloud/testhelper" @@ -35,7 +34,7 @@ func TestCreateBackupNoName(t *testing.T) { Rotation: 1, }).ExtractErr() if err == nil { - fmt.Errorf("CreateBackup without a specified Name should throw an Error.") + t.Errorf("CreateBackup without a specified Name should throw an Error.") } } @@ -51,7 +50,7 @@ func TestCreateBackupNegativeRotation(t *testing.T) { Rotation: -1, }).ExtractErr() if err == nil { - fmt.Errorf("CreateBackup without a negative Rotation should throw an Error.") + t.Errorf("CreateBackup without a negative Rotation should throw an Error.") } } @@ -67,7 +66,7 @@ func TestCreateBackupNoType(t *testing.T) { Rotation: 1, }).ExtractErr() if err == nil { - fmt.Errorf("CreateBackup without a specified BackupType should throw an Error.") + t.Errorf("CreateBackup without a specified BackupType should throw an Error.") } }