Skip to content

Commit

Permalink
fix(testutil): not split testutil into a separate module (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderPoet authored Nov 17, 2023
1 parent 8671b6c commit 1cee951
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 93 deletions.
29 changes: 0 additions & 29 deletions testutil/go.mod

This file was deleted.

56 changes: 0 additions & 56 deletions testutil/go.sum

This file was deleted.

2 changes: 1 addition & 1 deletion tracing/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/cloudwego/hertz/pkg/app/server"
"github.com/cloudwego/hertz/pkg/common/hlog"
"github.com/cloudwego/hertz/pkg/protocol/consts"
"github.com/hertz-contrib/obs-opentelemetry/testutil"
hertztracing "github.com/hertz-contrib/obs-opentelemetry/tracing"
"github.com/hertz-contrib/obs-opentelemetry/tracing/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel"
Expand Down
11 changes: 4 additions & 7 deletions tracing/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ module github.com/hertz-contrib/obs-opentelemetry/tracing

go 1.21

replace github.com/hertz-contrib/obs-opentelemetry/testutil => ../testutil

require (
github.com/bytedance/gopkg v0.0.0-20230728082804-614d0af6619b
github.com/cloudwego/hertz v0.7.1
github.com/hertz-contrib/obs-opentelemetry/testutil v0.0.0-00010101000000-000000000000
github.com/prometheus/client_golang v1.17.0
github.com/stretchr/testify v1.8.4
go.opentelemetry.io/contrib/propagators/b3 v1.20.0
go.opentelemetry.io/contrib/propagators/ot v1.20.0
go.opentelemetry.io/otel v1.20.0
go.opentelemetry.io/otel/exporters/prometheus v0.43.0
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.20.0
go.opentelemetry.io/otel/metric v1.20.0
go.opentelemetry.io/otel/sdk v1.20.0
go.opentelemetry.io/otel/sdk/metric v1.20.0
go.opentelemetry.io/otel/trace v1.20.0
)

Expand All @@ -35,17 +36,13 @@ require (
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/nyaruka/phonenumbers v1.0.55 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.17.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.11.1 // indirect
github.com/tidwall/gjson v1.14.4 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
go.opentelemetry.io/otel/exporters/prometheus v0.43.0 // indirect
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.20.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.20.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
golang.org/x/net v0.10.0 // indirect
Expand Down
File renamed without changes.

0 comments on commit 1cee951

Please sign in to comment.