Skip to content

Commit

Permalink
Fix SqlClient tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Jun 10, 2024
1 parent e8d1331 commit 3f1fbb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace OpenTelemetry.Instrumentation.SqlClient.Tests;

[Collection("SqlClient")]
public class SqlClientTests : IDisposable
{
#if !NETFRAMEWORK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace OpenTelemetry.Instrumentation.SqlClient.Tests;

[Collection("SqlClient")]
public class SqlEventSourceTests
{
/*
Expand Down Expand Up @@ -176,7 +177,7 @@ public void DefaultCaptureTextFalse(Type eventSourceType)
using IFakeBehavingSqlEventSource fakeSqlEventSource = (IFakeBehavingSqlEventSource)Activator.CreateInstance(eventSourceType);

var exportedItems = new List<Activity>();
using var shutdownSignal = Sdk.CreateTracerProviderBuilder()
var shutdownSignal = Sdk.CreateTracerProviderBuilder()
.AddInMemoryExporter(exportedItems)
.AddSqlClientInstrumentation()
.Build();
Expand Down

0 comments on commit 3f1fbb0

Please sign in to comment.