From d42cf1e34660ef05fc7ad9e6929ad5d455accf15 Mon Sep 17 00:00:00 2001 From: Christopher Jolly Date: Sun, 2 Oct 2022 03:27:16 +0800 Subject: [PATCH] Fix tests: Use helper method to create connection - will use database named for the test - gives each test a unique name so doesnt interfere with others at the same time. The rest of the tests already use it, these couple were just missed --- .../EFCore.Jet.IntegrationTests/BooleanMaterializationTest2.cs | 2 +- test/EFCore.Jet.IntegrationTests/DataTypesTest.cs | 2 +- test/EFCore.Jet.IntegrationTests/DmlBaseTest.cs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/EFCore.Jet.IntegrationTests/BooleanMaterializationTest2.cs b/test/EFCore.Jet.IntegrationTests/BooleanMaterializationTest2.cs index 63fb667..d07eb21 100644 --- a/test/EFCore.Jet.IntegrationTests/BooleanMaterializationTest2.cs +++ b/test/EFCore.Jet.IntegrationTests/BooleanMaterializationTest2.cs @@ -18,7 +18,7 @@ namespace EntityFrameworkCore.Jet.IntegrationTests protected override DbConnection GetConnection() { - return AssemblyInitialization.Connection; + return Helpers.GetJetConnection(); } public override void CleanUp() diff --git a/test/EFCore.Jet.IntegrationTests/DataTypesTest.cs b/test/EFCore.Jet.IntegrationTests/DataTypesTest.cs index cc13c20..d96d285 100644 --- a/test/EFCore.Jet.IntegrationTests/DataTypesTest.cs +++ b/test/EFCore.Jet.IntegrationTests/DataTypesTest.cs @@ -49,7 +49,7 @@ namespace EntityFrameworkCore.Jet.IntegrationTests protected override DbConnection GetConnection() { - return AssemblyInitialization.Connection; + return Helpers.GetJetConnection(); } } } diff --git a/test/EFCore.Jet.IntegrationTests/DmlBaseTest.cs b/test/EFCore.Jet.IntegrationTests/DmlBaseTest.cs index 4437b18..4c2bead 100644 --- a/test/EFCore.Jet.IntegrationTests/DmlBaseTest.cs +++ b/test/EFCore.Jet.IntegrationTests/DmlBaseTest.cs @@ -100,6 +100,7 @@ namespace EntityFrameworkCore.Jet.IntegrationTests } - + protected override DbConnection GetConnection() + => Helpers.GetJetConnection(); } }