Updating acceptance tests :ok_hand:
diff --git a/acceptance/openstack/blockstorage/v1/snapshots_test.go b/acceptance/openstack/blockstorage/v1/snapshots_test.go
index 5835048..bd6a961 100644
--- a/acceptance/openstack/blockstorage/v1/snapshots_test.go
+++ b/acceptance/openstack/blockstorage/v1/snapshots_test.go
@@ -47,8 +47,8 @@
t.Logf("Created snapshot: %+v\n", ss)
- err = snapshots.Delete(client, ss.ID)
- if err != nil {
+ res = snapshots.Delete(client, ss.ID)
+ if res.Err != nil {
t.Fatalf("Failed to delete snapshot: %v", err)
}
@@ -66,8 +66,8 @@
t.Log("Deleted snapshot\n")
- err = volumes.Delete(client, v.ID)
- if err != nil {
+ res = volumes.Delete(client, v.ID)
+ if res.Err != nil {
t.Errorf("Failed to delete volume: %v", err)
}
diff --git a/acceptance/openstack/blockstorage/v1/volumes_test.go b/acceptance/openstack/blockstorage/v1/volumes_test.go
index 6739a99..d2281e6 100644
--- a/acceptance/openstack/blockstorage/v1/volumes_test.go
+++ b/acceptance/openstack/blockstorage/v1/volumes_test.go
@@ -47,8 +47,8 @@
if err != nil {
t.Error(err)
}
- err = volumes.Delete(client, cv.ID)
- if err != nil {
+ res = volumes.Delete(client, cv.ID)
+ if res.Err != nil {
t.Error(err)
return
}