client: TestImageListWithSharedSize slight reformat

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-11-13 12:27:13 +01:00
parent 9af7fbff2a
commit 76a4381d45

View File

@@ -120,10 +120,13 @@ func TestImageListWithSharedSize(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
var query url.Values
client, err := New(WithMockClient(func(req *http.Request) (*http.Response, error) {
query = req.URL.Query()
return mockResponse(http.StatusOK, nil, "[]")(req)
}), WithAPIVersion(tc.version))
client, err := New(
WithAPIVersion(tc.version),
WithMockClient(func(req *http.Request) (*http.Response, error) {
query = req.URL.Query()
return mockResponse(http.StatusOK, nil, "[]")(req)
}),
)
assert.NilError(t, err)
_, err = client.ImageList(t.Context(), tc.options)
assert.NilError(t, err)