Fixing broken test :mag:
diff --git a/openstack/compute/v2/servers/requests_test.go b/openstack/compute/v2/servers/requests_test.go
index 806efd3..b0de950 100644
--- a/openstack/compute/v2/servers/requests_test.go
+++ b/openstack/compute/v2/servers/requests_test.go
@@ -42,7 +42,7 @@
client := serviceClient()
pages := 0
- err := List(client).EachPage(func(page pagination.Page) (bool, error) {
+ err := List(client, ListOpts{}).EachPage(func(page pagination.Page) (bool, error) {
pages++
actual, err := ExtractServers(page)
@@ -59,9 +59,8 @@
return true, nil
})
- if err != nil {
- t.Fatalf("Unexpected error from EachPage: %v", err)
- }
+ testhelper.AssertNoErr(t, err)
+
if pages != 1 {
t.Errorf("Expected 1 page, saw %d", pages)
}