The latest commit #156 seems to have broken a test case I was using. The testcase uses: servers.IDFromName.
It might be a regression caused by the PR or maybe the test case needs to be updated. Either way, any help would be appreciated.
A minimal sample is available here: https://github.com/pedantic79/gophercloud-utils-test
~/gophercloud-utils-test ‹main› » go test
--- FAIL: TestGetServerIDByName (0.00s)
sample_test.go:46: Expected 9e5476bd-a4ec-4653-93d6-72c93aa682ba, but was
convenience.go:35: Failure in sample_test.go, line 49: unexpected error "Found 3 servers matching derp"
--- FAIL: TestGetServerIDsByName (0.00s)
sample_test.go:61: Expected 1, but was 3
FAIL
exit status 1
FAIL github.com/pedantic79/gophercloud-utils-test 0.233s
The branch "old" contains the same test has a dependency on the previous commit (so it doesn't include the second test).
~/gophercloud-utils-test ‹old› » go test
PASS
ok github.com/pedantic79/gophercloud-utils-test 0.173s
The latest commit #156 seems to have broken a test case I was using. The testcase uses:
servers.IDFromName.It might be a regression caused by the PR or maybe the test case needs to be updated. Either way, any help would be appreciated.
A minimal sample is available here: https://github.com/pedantic79/gophercloud-utils-test
The branch "old" contains the same test has a dependency on the previous commit (so it doesn't include the second test).