Skip to content

Commit 11b62f4

Browse files
committed
Fix datasource initialization in MySQLJdbcJobRepositoryTests
1 parent fdd253a commit 11b62f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/MySQLJdbcJobRepositoryTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public class MySQLJdbcJobRepositoryTests {
7373
@Before
7474
public void setUp() {
7575
ResourceDatabasePopulator databasePopulator = new ResourceDatabasePopulator();
76+
databasePopulator.addScript(new ClassPathResource("/org/springframework/batch/core/schema-drop-mysql.sql"));
7677
databasePopulator.addScript(new ClassPathResource("/org/springframework/batch/core/schema-mysql.sql"));
7778
databasePopulator.execute(this.dataSource);
7879
}

0 commit comments

Comments
 (0)