Skip to content

Commit

Permalink
Fix test MigrationTableAsyncTest as I messed it up leaving out the co…
Browse files Browse the repository at this point in the history
…nnection
  • Loading branch information
rbygrave committed Nov 3, 2023
1 parent 82ca9cf commit 7877351
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
}

Expand Down

0 comments on commit 7877351

Please sign in to comment.