Skip to content

Commit

Permalink
FlinkProcessVerifier: test fix attempt: creating env before mini cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadius committed Jan 20, 2025
1 parent e286efc commit a9e4a09
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ class FlinkProcessVerifier(modelData: ModelData) extends LazyLogging {
try {
logger.info(s"Starting to verify $processId")
// TODO: reuse a single mini cluster between each verifications
val env = TestsMechanismStreamExecutionEnvironmentFactory.createStreamExecutionEnvironment(
parallelism,
new Configuration()
)
Using(TestsMechanismMiniClusterFactory.createConfiguredMiniCluster(parallelism)) { miniCluster =>
val env = TestsMechanismStreamExecutionEnvironmentFactory.createStreamExecutionEnvironment(parallelism, new Configuration())

methodInvoker.invokeStaticMethod(
miniCluster,
env,
Expand Down

0 comments on commit a9e4a09

Please sign in to comment.