Skip to content

Commit 905ff4c

Browse files
committed
Fixed a test.
1 parent 3fb046f commit 905ff4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Serilog.Sinks.MSSqlServer.Tests/Sinks/MSSqlServer/Platform/SqlClient/SqlConnectionWrapperTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public void InitializeThrowsIfCalledWithAuthenticationTokenOnDotNetFramework452B
2020
Assert.Throws<InvalidOperationException>(() => new SqlConnectionWrapper(DatabaseFixture.LogEventsConnectionString, "AuthenticationToken"));
2121
#else
2222
// Should not throw
23-
new SqlConnectionWrapper(@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Master", "AuthenticationToken");
23+
using (_ = new SqlConnectionWrapper(@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Master", "AuthenticationToken"))
24+
{ }
2425
#endif
2526
}
2627

0 commit comments

Comments
 (0)