From dce1267da53dc88de27b43512ebf5ef8ffbaa0e8 Mon Sep 17 00:00:00 2001 From: Huiwen Date: Mon, 13 Nov 2023 13:27:41 +0000 Subject: [PATCH] fix build --- install/installer/pkg/common/common_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/installer/pkg/common/common_test.go b/install/installer/pkg/common/common_test.go index fa00c6aed851d4..682cd168b403b8 100644 --- a/install/installer/pkg/common/common_test.go +++ b/install/installer/pkg/common/common_test.go @@ -59,7 +59,7 @@ func TestPublicApiServerComponentWaiterContainer(t *testing.T) { container := common.PublicApiServerComponentWaiterContainer(ctx) labels := common.DefaultLabelSelector(common.PublicApiComponent) require.Equal(t, labels, "app=gitpod,component=public-api-server") - ideMetricsHost := common.IDEMetricsComponent + ":" + strconv.Itoa(common.IDEMetricsPort) + ideMetricsHost := "http://" + common.IDEMetricsComponent + ":" + strconv.Itoa(common.IDEMetricsPort) require.Equal(t, []string{"-v", "component", "--ide-metrics-host", ideMetricsHost, "--namespace", "test_namespace", "--component", common.PublicApiComponent, "--labels", labels, "--image", ctx.Config.Repository + "/public-api-server:" + "happy_path_papi_image"}, container.Args) } @@ -73,6 +73,6 @@ func TestServerComponentWaiterContainer(t *testing.T) { container := common.ServerComponentWaiterContainer(ctx) labels := common.DefaultLabelSelector(common.ServerComponent) require.Equal(t, labels, "app=gitpod,component=server") - ideMetricsHost := common.IDEMetricsComponent + ":" + strconv.Itoa(common.IDEMetricsPort) + ideMetricsHost := "http://" + common.IDEMetricsComponent + ":" + strconv.Itoa(common.IDEMetricsPort) require.Equal(t, []string{"-v", "component", "--ide-metrics-host", ideMetricsHost, "--namespace", "test_namespace", "--component", common.ServerComponent, "--labels", labels, "--image", ctx.Config.Repository + "/server:" + "happy_path_server_image"}, container.Args) }