From a884a32e376b45605f12fd0f3bdf254482fdbad7 Mon Sep 17 00:00:00 2001 From: adityachopra29 Date: Mon, 30 Dec 2024 16:59:43 +0530 Subject: [PATCH] set back the path to sampling strategies file in exetension test Signed-off-by: adityachopra29 --- .../internal/extension/remotesampling/extension_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/jaeger/internal/extension/remotesampling/extension_test.go b/cmd/jaeger/internal/extension/remotesampling/extension_test.go index 3989ca11ca4..b29328d37af 100644 --- a/cmd/jaeger/internal/extension/remotesampling/extension_test.go +++ b/cmd/jaeger/internal/extension/remotesampling/extension_test.go @@ -7,6 +7,7 @@ import ( "context" "io" "net/http" + "path/filepath" "testing" "time" @@ -83,7 +84,7 @@ func makeRemoteSamplingExtension(t *testing.T, cfg component.Config) component.H func TestStartFileBasedProvider(t *testing.T) { factory := NewFactory() cfg := factory.CreateDefaultConfig().(*Config) - cfg.File = nil + cfg.File.Path = filepath.Join("..", "..", "..", "sampling-strategies.json") cfg.Adaptive = nil cfg.HTTP = nil cfg.GRPC = nil @@ -101,7 +102,7 @@ func TestStartFileBasedProvider(t *testing.T) { func TestStartHTTP(t *testing.T) { factory := NewFactory() cfg := factory.CreateDefaultConfig().(*Config) - cfg.File = nil + cfg.File.Path = filepath.Join("..", "..", "..", "sampling-strategies.json") cfg.Adaptive = nil cfg.HTTP = &confighttp.ServerConfig{ Endpoint: "0.0.0.0:12345", @@ -139,7 +140,7 @@ func TestStartHTTP(t *testing.T) { func TestStartGRPC(t *testing.T) { factory := NewFactory() cfg := factory.CreateDefaultConfig().(*Config) - cfg.File = nil + cfg.File.Path = filepath.Join("..", "..", "..", "sampling-strategies.json") cfg.Adaptive = nil cfg.HTTP = nil cfg.GRPC = &configgrpc.ServerConfig{