Skip to content

Commit 7877351

Browse files
committed
Fix test MigrationTableAsyncTest as I messed it up leaving out the connection
1 parent 82ca9cf commit 7877351

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ebean-migration/src/test/java/io/ebean/migration/runner/MigrationTableAsyncTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private void runTest(boolean withExisting) throws SQLException, InterruptedExcep
185185

186186
config.setPlatform(derivedPlatformName);
187187
MigrationPlatform platform = DbNameUtil.platform(derivedPlatformName);
188-
MigrationTable table = migrationTable(platform);
188+
MigrationTable table = migrationTable(platform, conn);
189189
table.createIfNeededAndLock();
190190
table.unlockMigrationTable();
191191
conn.commit();
@@ -203,8 +203,8 @@ private void runTest(boolean withExisting) throws SQLException, InterruptedExcep
203203
}
204204
}
205205

206-
private static MigrationTable migrationTable(MigrationPlatform platform) {
207-
var fc = new FirstCheck(config, null, platform);
206+
private static MigrationTable migrationTable(MigrationPlatform platform, Connection connection) {
207+
var fc = new FirstCheck(config, connection, platform);
208208
return new MigrationTable(fc, false);
209209
}
210210

0 commit comments

Comments
 (0)