From 395a22aa217e325df74fa3df306a4ded146bd68b Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Mon, 11 Oct 2021 14:57:19 +0200 Subject: [PATCH] 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. --- internal/cloudapi/v2/v2_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cloudapi/v2/v2_test.go b/internal/cloudapi/v2/v2_test.go index dc7f71b1b..653f6a567 100644 --- a/internal/cloudapi/v2/v2_test.go +++ b/internal/cloudapi/v2/v2_test.go @@ -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(` {