Skip to content

Commit 61d0b75

Browse files
committed
Check for underlying connection null
1 parent 5944177 commit 61d0b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm.Tests.Sql/IndexTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected override void TestFixtureSetUp()
5050

5151
protected override void TestFixtureTearDown()
5252
{
53-
if (Connection.State != System.Data.ConnectionState.Open) {
53+
if (Connection.UnderlyingConnection!=null && Connection.State != System.Data.ConnectionState.Open) {
5454
base.TestFixtureTearDown();
5555
return;
5656
}

0 commit comments

Comments
 (0)