From bafa299213cc2f76929745325503b0b2f03c1d43 Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Mon, 9 Sep 2024 09:19:45 -0600 Subject: [PATCH] otelmongo#39 Reomve parallel tests --- .../mongo-driver/mongo/otelmongo/test/go.mod | 2 +- .../mongo-driver/mongo/otelmongo/test/mongo_test.go | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/go.mod b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/go.mod index 45735eeba40..b287d8b08de 100644 --- a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/go.mod +++ b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/go.mod @@ -5,7 +5,7 @@ go 1.22 require ( github.com/stretchr/testify v1.9.0 go.mongodb.org/mongo-driver v1.16.1 - go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo v0.54.0 + go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo v0.0.0-00010101000000-000000000000 go.opentelemetry.io/otel v1.29.0 go.opentelemetry.io/otel/sdk v1.29.0 go.opentelemetry.io/otel/trace v1.29.0 diff --git a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/mongo_test.go b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/mongo_test.go index 10413393a21..4b0f62b932b 100644 --- a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/mongo_test.go +++ b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/mongo_test.go @@ -14,7 +14,7 @@ import ( "go.mongodb.org/mongo-driver/mongo/integration/mtest" "go.mongodb.org/mongo-driver/mongo/options" - "go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo" // nolint:staticcheck // deprecated. + "go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" sdktrace "go.opentelemetry.io/otel/sdk/trace" @@ -25,8 +25,6 @@ import ( type validator func(sdktrace.ReadOnlySpan) bool func TestDBCrudOperation(t *testing.T) { - t.Parallel() - commonValidators := []validator{ func(s sdktrace.ReadOnlySpan) bool { return assert.Equal(t, "test-collection.insert", s.Name(), "expected %s", s.Name()) @@ -94,8 +92,6 @@ func TestDBCrudOperation(t *testing.T) { mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock)) mt.Run(title, func(mt *mtest.T) { - mt.Parallel() - sr := tracetest.NewSpanRecorder() provider := sdktrace.NewTracerProvider(sdktrace.WithSpanProcessor(sr)) @@ -147,8 +143,6 @@ func TestDBCrudOperation(t *testing.T) { } func TestDBCollectionAttribute(t *testing.T) { - t.Parallel() - tt := []struct { title string operation func(context.Context, *mongo.Database) (interface{}, error) @@ -205,8 +199,6 @@ func TestDBCollectionAttribute(t *testing.T) { mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock)) mt.Run(tc.title, func(mt *mtest.T) { - mt.Parallel() - sr := tracetest.NewSpanRecorder() provider := sdktrace.NewTracerProvider(sdktrace.WithSpanProcessor(sr))