Fixes to the QueryBugsTest (#162)

* Ensure connection is closed before dropping the database/deleting the file

* Upgrade the QueryBugsTest
ci/test_push_after_autocommit
Christopher Jolly 2 years ago committed by GitHub
parent 1ba41b74d7
commit 88f0ba8df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

File diff suppressed because it is too large Load Diff

@ -9,7 +9,7 @@ using Microsoft.Extensions.DependencyInjection;
namespace EntityFrameworkCore.Jet.FunctionalTests.TestUtilities
{
public class JetTestHelpers : TestHelpers
public class JetTestHelpers : RelationalTestHelpers
{
protected JetTestHelpers()
{

@ -159,7 +159,13 @@ namespace EntityFrameworkCore.Jet.FunctionalTests.TestUtilities
}
public void DeleteDatabase()
=> JetConnection.DropDatabase(CreateConnectionString(Name));
{
if (ConnectionState != ConnectionState.Closed)
{
CloseConnection();
}
JetConnection.DropDatabase(CreateConnectionString(Name));
}
public override void OpenConnection()
=> new TestJetRetryingExecutionStrategy().Execute(Connection, connection => connection.Open());

Loading…
Cancel
Save