clean unused variable

pull/8/head
tanshanshan 2018-07-18 09:37:56 +08:00
parent 162655f42f
commit 3676a08690
2 changed files with 4 additions and 1 deletions

View File

@ -87,6 +87,9 @@ func TestRoutes(t *testing.T) {
func getServers(os *OpenStack) []servers.Server {
c, err := os.NewComputeV2()
if err != nil {
panic(err)
}
allPages, err := servers.List(c, servers.ListOpts{}).AllPages()
if err != nil {
panic(err)

View File

@ -140,7 +140,7 @@ func TestInstances(t *testing.T) {
}
t.Logf("Found InstanceID(%s) = %s\n", testVM, instanceId)
instanceId, err = i.InstanceID(context.TODO(), nonExistingVM)
_, err = i.InstanceID(context.TODO(), nonExistingVM)
if err == cloudprovider.InstanceNotFound {
t.Logf("VM %s was not found as expected\n", nonExistingVM)
} else if err == nil {