From 040426fcd61a72988e263ee25e015f6bd7fdfb2d Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Fri, 3 Nov 2023 07:36:11 -0700 Subject: [PATCH] [chore] [extension/jaegerremotesampling] Avoid port conflict in tests (#28874) Fixes https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/28873 --- .../jaegerremotesamplingdeprecated/extension_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/jaegerremotesampling/internal/jaegerremotesamplingdeprecated/extension_test.go b/extension/jaegerremotesampling/internal/jaegerremotesamplingdeprecated/extension_test.go index 53efe32c5926..7497ce089457 100644 --- a/extension/jaegerremotesampling/internal/jaegerremotesamplingdeprecated/extension_test.go +++ b/extension/jaegerremotesampling/internal/jaegerremotesamplingdeprecated/extension_test.go @@ -117,7 +117,7 @@ func TestRemote(t *testing.T) { // make test case defined number of calls for i := 0; i < tc.performedClientCallCount; i++ { - resp, err := http.Get("http://127.0.0.1:5778/sampling?service=foo") + resp, err := http.Get("http://127.0.0.1:5779/sampling?service=foo") assert.NoError(t, err) assert.Equal(t, 200, resp.StatusCode) } @@ -163,7 +163,7 @@ func (s *samplingServer) GetSamplingStrategy(ctx context.Context, params *api_v2 func testConfig() *Config { cfg := createDefaultConfig().(*Config) - cfg.HTTPServerSettings.Endpoint = "127.0.0.1:5778" - cfg.GRPCServerSettings.NetAddr.Endpoint = "127.0.0.1:14250" + cfg.HTTPServerSettings.Endpoint = "127.0.0.1:5779" + cfg.GRPCServerSettings.NetAddr.Endpoint = "127.0.0.1:14251" return cfg }