From 7877351255d13227cff78a064b7ce9b6d2dd2ce9 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Fri, 3 Nov 2023 16:41:24 +1300 Subject: [PATCH] Fix test MigrationTableAsyncTest as I messed it up leaving out the connection --- .../io/ebean/migration/runner/MigrationTableAsyncTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ebean-migration/src/test/java/io/ebean/migration/runner/MigrationTableAsyncTest.java b/ebean-migration/src/test/java/io/ebean/migration/runner/MigrationTableAsyncTest.java index 1f263eb..38bc0b6 100644 --- a/ebean-migration/src/test/java/io/ebean/migration/runner/MigrationTableAsyncTest.java +++ b/ebean-migration/src/test/java/io/ebean/migration/runner/MigrationTableAsyncTest.java @@ -185,7 +185,7 @@ private void runTest(boolean withExisting) throws SQLException, InterruptedExcep config.setPlatform(derivedPlatformName); MigrationPlatform platform = DbNameUtil.platform(derivedPlatformName); - MigrationTable table = migrationTable(platform); + MigrationTable table = migrationTable(platform, conn); table.createIfNeededAndLock(); table.unlockMigrationTable(); conn.commit(); @@ -203,8 +203,8 @@ private void runTest(boolean withExisting) throws SQLException, InterruptedExcep } } - private static MigrationTable migrationTable(MigrationPlatform platform) { - var fc = new FirstCheck(config, null, platform); + private static MigrationTable migrationTable(MigrationPlatform platform, Connection connection) { + var fc = new FirstCheck(config, connection, platform); return new MigrationTable(fc, false); }