From 64f33cd463272cda6b7b6086564c2c07d9094dea Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 16 Jul 2025 22:21:46 +0200 Subject: [PATCH] TestCloneArgsSmartHttp: fix unhandled error Signed-off-by: Sebastiaan van Stijn --- cli/command/image/build/internal/git/gitutils_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/command/image/build/internal/git/gitutils_test.go b/cli/command/image/build/internal/git/gitutils_test.go index c8d9ee1bfd..61dfb56d62 100644 --- a/cli/command/image/build/internal/git/gitutils_test.go +++ b/cli/command/image/build/internal/git/gitutils_test.go @@ -124,7 +124,8 @@ func TestParseRemoteURL(t *testing.T) { func TestCloneArgsSmartHttp(t *testing.T) { mux := http.NewServeMux() server := httptest.NewServer(mux) - serverURL, _ := url.Parse(server.URL) + serverURL, err := url.Parse(server.URL) + assert.NilError(t, err) serverURL.Path = "/repo.git"