Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

openstack/compute/v2/extensions/adminactions: fix errors found by vet #640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions openstack/compute/v2/extensions/adminactions/requests_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package adminactions

import (
"fmt"
"testing"

th "github.com/rackspace/gophercloud/testhelper"
Expand Down Expand Up @@ -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.")
}
}

Expand All @@ -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.")
}
}

Expand All @@ -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.")
}
}

Expand Down