fix unit tests
diff --git a/openstack/blockstorage/v2/extensions/volumeactions/requests_test.go b/openstack/blockstorage/v2/extensions/volumeactions/requests_test.go
index 57e2b59..5657287 100644
--- a/openstack/blockstorage/v2/extensions/volumeactions/requests_test.go
+++ b/openstack/blockstorage/v2/extensions/volumeactions/requests_test.go
@@ -18,7 +18,7 @@
Mode: "rw",
InstanceUUID: "50902f4f-a974-46a0-85e9-7efc5e22dfdd",
}
- _, err := Attach(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c", options).Extract()
+ err := Attach(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c", options).ExtractErr()
th.AssertNoErr(t, err)
}
@@ -28,7 +28,7 @@
MockDetachResponse(t)
- _, err := Detach(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").Extract()
+ err := Detach(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").ExtractErr()
th.AssertNoErr(t, err)
}
@@ -38,7 +38,7 @@
MockReserveResponse(t)
- _, err := Reserve(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").Extract()
+ err := Reserve(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").ExtractErr()
th.AssertNoErr(t, err)
}
@@ -48,7 +48,7 @@
MockUnreserveResponse(t)
- _, err := Unreserve(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").Extract()
+ err := Unreserve(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").ExtractErr()
th.AssertNoErr(t, err)
}
@@ -84,6 +84,6 @@
Platform: "x86_64",
OSType: "linux2",
}
- _, err := TerminateConnection(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c", options).Extract()
+ err := TerminateConnection(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c", options).ExtractErr()
th.AssertNoErr(t, err)
}