Skip to content

Commit

Permalink
fix: use noop tracer for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Jun 22, 2024
1 parent 8053408 commit c2d0498
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/authenticator/auto_authenticator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/snapp-incubator/soteria/pkg/validator"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"go.opentelemetry.io/otel/trace/noop"
"go.uber.org/zap"
)

Expand All @@ -37,6 +38,7 @@ func TestAutoAuthenticator_suite(t *testing.T) {
suite.Run(t, new(AutoAuthenticatorTestSuite))
}

// nolint: funlen
func (suite *AutoAuthenticatorTestSuite) SetupSuite() {
cfg := config.SnappVendor()

Expand Down Expand Up @@ -89,6 +91,7 @@ func (suite *AutoAuthenticatorTestSuite) SetupSuite() {
suite.Authenticator = authenticator.AutoAuthenticator{
Validator: validator.New(testServer.URL, time.Second),
AllowedAccessTypes: []acl.AccessType{acl.Pub, acl.Sub, acl.PubSub},
Tracer: noop.NewTracerProvider().Tracer(""),
Company: "snapp",
Parser: jwt.NewParser(),
TopicManager: topics.NewTopicManager(cfg.Topics, hid, "snapp", cfg.IssEntityMap, cfg.IssPeerMap, zap.NewNop()),
Expand Down

0 comments on commit c2d0498

Please sign in to comment.