From a430efa8d28856c3abd1c06de06f369d7aadf1a1 Mon Sep 17 00:00:00 2001 From: "Steven.Darby" Date: Mon, 17 Apr 2023 16:58:54 +0100 Subject: [PATCH] Allow changing an open connection if it's not owned Fixes #30704 --- test/EFCore.Relational.Tests/RelationalConnectionTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/EFCore.Relational.Tests/RelationalConnectionTest.cs b/test/EFCore.Relational.Tests/RelationalConnectionTest.cs index 4d2396b6b16..d7d4448b828 100644 --- a/test/EFCore.Relational.Tests/RelationalConnectionTest.cs +++ b/test/EFCore.Relational.Tests/RelationalConnectionTest.cs @@ -1025,7 +1025,7 @@ public void Throws_when_changing_DbConnection_if_current_is_open_and_owned() } [ConditionalFact] - public void Disposes_when_changing_DbConnection_if_current_is_not_open() + public void Disposes_when_changing_DbConnection_if_current_is_owned_and_not_open() { using var connection = new FakeRelationalConnection( CreateOptions(new FakeRelationalOptionsExtension().WithConnectionString("Database=FrodoLives")));