Skip to content

Commit

Permalink
add sleep after withCdc execution
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-airbyte committed Feb 24, 2024
1 parent 1e33870 commit 459f923
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,17 @@ public void initializedPostHook() {
}

public MsSQLTestDatabase withCdc() {
return with("EXEC sys.sp_cdc_enable_db;");
LOGGER.info("enabling CDC on database {} with id {}", getDatabaseName(), databaseId);
MsSQLTestDatabase retVal = with("EXEC sys.sp_cdc_enable_db;");
LOGGER.info("CDC enabled on database {} with id {}", getDatabaseName(), databaseId);
try {
LOGGER.info("Sleeping");
Thread.sleep(60_000);
LOGGER.info("Done sleeping");
} catch (InterruptedException e) {

}
return retVal;
}

public MsSQLTestDatabase withoutCdc() {
Expand Down

0 comments on commit 459f923

Please sign in to comment.