cloudapi/v2: fix newV2Server() call in test

Bug caused by two consecutive PR merge rebases, one that added a
function call and another that changed the signature of the same
function.
This commit is contained in:
Achilleas Koutsou 2021-10-11 14:57:19 +02:00 committed by Sanne Raymaekers
parent 93dec413f3
commit 395a22aa21

View file

@ -411,7 +411,8 @@ func TestImageTypes(t *testing.T) {
dir, err := ioutil.TempDir("", "osbuild-composer-test-api-v2-")
require.NoError(t, err)
defer os.RemoveAll(dir)
srv, _ := newV2Server(t, dir)
srv, _, cancel := newV2Server(t, dir)
defer cancel()
test.TestRoute(t, srv.Handler("/api/image-builder-composer/v2"), false, "POST", "/api/image-builder-composer/v2/compose", fmt.Sprintf(`
{