update block storage 'Delete' acceptance tests to use 'Extract'
diff --git a/acceptance/openstack/blockstorage/v1/snapshots_test.go b/acceptance/openstack/blockstorage/v1/snapshots_test.go
index bd6a961..1e639de 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)
- res = snapshots.Delete(client, ss.ID)
- if res.Err != nil {
+ err = snapshots.Delete(client, ss.ID).Extract()
+ if err != nil {
t.Fatalf("Failed to delete snapshot: %v", err)
}
@@ -66,8 +66,8 @@
t.Log("Deleted snapshot\n")
- res = volumes.Delete(client, v.ID)
- if res.Err != nil {
+ err = volumes.Delete(client, v.ID).Extract()
+ if err != nil {
t.Errorf("Failed to delete volume: %v", err)
}