Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 14, 2024
1 parent 1452281 commit 9410251
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,8 @@ go.temporal.io/sdk/contrib/opentelemetry v0.6.0/go.mod h1:Lem8VrE2ks8P+FYcRM3Uph
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
go.uber.org/dig v1.18.0 h1:imUL1UiY0Mg4bqbFfsRQO5G4CGRBec/ZujWTvSVp3pw=
go.uber.org/dig v1.18.0/go.mod h1:Us0rSJiThwCv2GteUN0Q7OKvU7n5J4dxZ9JKUXozFdE=
go.uber.org/fx v1.22.2 h1:iPW+OPxv0G8w75OemJ1RAnTUrF55zOJlXlo1TbJ0Buw=
go.uber.org/fx v1.22.2/go.mod h1:o/D9n+2mLP6v1EG+qsdT1O8wKopYAsqZasju97SDFCU=
go.uber.org/fx v1.23.0 h1:lIr/gYWQGfTwGcSXWXu4vP5Ws6iqnNEIY+F/aFzCKTg=
go.uber.org/fx v1.23.0/go.mod h1:o/D9n+2mLP6v1EG+qsdT1O8wKopYAsqZasju97SDFCU=
go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
Expand Down
3 changes: 3 additions & 0 deletions otlp/otlptraces/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"reflect"
"testing"

"github.com/formancehq/go-libs/otlp"

"github.com/spf13/cobra"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel"
Expand Down Expand Up @@ -36,6 +38,7 @@ func TestOTLPTracesModule(t *testing.T) {
RunE: func(cmd *cobra.Command, args []string) error {
app := fx.New(
fx.NopLogger,
otlp.NewFxModule(otlp.Config{}),
FXModuleFromFlags(cmd),
fx.Invoke(func(lc fx.Lifecycle, spanExporter tracesdk.SpanExporter) {
lc.Append(fx.Hook{
Expand Down
2 changes: 1 addition & 1 deletion otlp/otlptraces/traces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestTracesModule(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {

options := []fx.Option{TracesModule(test.config)}
options := []fx.Option{otlp.NewFxModule(otlp.Config{}), TracesModule(test.config)}
if !testing.Verbose() {
options = append(options, fx.NopLogger)
}
Expand Down

0 comments on commit 9410251

Please sign in to comment.