Skip to content

Commit

Permalink
set back the path to sampling strategies file in exetension test
Browse files Browse the repository at this point in the history
Signed-off-by: adityachopra29 <[email protected]>
  • Loading branch information
adityachopra29 committed Dec 30, 2024
1 parent c6afbc0 commit a884a32
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"io"
"net/http"
"path/filepath"
"testing"
"time"

Expand Down Expand Up @@ -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
Expand All @@ -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",
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit a884a32

Please sign in to comment.