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

Commit a3ad43a

Browse files
author
Jamie Hannaford
committed
fix unit tests
1 parent 531e0cc commit a3ad43a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

openstack/blockstorage/v2/extensions/volumeactions/requests_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func TestAttach(t *testing.T) {
1818
Mode: "rw",
1919
InstanceUUID: "50902f4f-a974-46a0-85e9-7efc5e22dfdd",
2020
}
21-
_, err := Attach(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c", options).Extract()
21+
err := Attach(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c", options).ExtractErr()
2222
th.AssertNoErr(t, err)
2323
}
2424

@@ -28,7 +28,7 @@ func TestDetach(t *testing.T) {
2828

2929
MockDetachResponse(t)
3030

31-
_, err := Detach(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").Extract()
31+
err := Detach(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").ExtractErr()
3232
th.AssertNoErr(t, err)
3333
}
3434

@@ -38,7 +38,7 @@ func TestReserve(t *testing.T) {
3838

3939
MockReserveResponse(t)
4040

41-
_, err := Reserve(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").Extract()
41+
err := Reserve(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").ExtractErr()
4242
th.AssertNoErr(t, err)
4343
}
4444

@@ -48,7 +48,7 @@ func TestUnreserve(t *testing.T) {
4848

4949
MockUnreserveResponse(t)
5050

51-
_, err := Unreserve(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").Extract()
51+
err := Unreserve(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c").ExtractErr()
5252
th.AssertNoErr(t, err)
5353
}
5454

@@ -84,6 +84,6 @@ func TestTerminateConnection(t *testing.T) {
8484
Platform: "x86_64",
8585
OSType: "linux2",
8686
}
87-
_, err := TerminateConnection(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c", options).Extract()
87+
err := TerminateConnection(client.ServiceClient(), "cd281d77-8217-4830-be95-9528227c105c", options).ExtractErr()
8888
th.AssertNoErr(t, err)
8989
}

0 commit comments

Comments
 (0)