Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadius committed Jan 17, 2025
1 parent 3ac7e6e commit 81d95d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ final class FlinkStubbedRunner(modelClassLoader: ModelClassLoader, configuration
// see details in pl.touk.nussknacker.engine.flink.test.MiniClusterExecutionEnvironment#execute
modelClassLoader.urls match {
// FIXME abr: is it necessary?
case Nil =>
// case Nil =>
// ConfigUtils.decodeListFromConfig[String, URL, MalformedURLException](
// configuration,
// PipelineOptions.CLASSPATHS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ import pl.touk.nussknacker.engine.testmode.TestProcess._
import pl.touk.nussknacker.engine.util.ThreadUtils
import pl.touk.nussknacker.engine.{ModelConfigs, ModelData}
import pl.touk.nussknacker.engine.deployment.AdditionalModelConfigs
import pl.touk.nussknacker.engine.testing.LocalModelData

import java.util.{Date, UUID}
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._
import scala.concurrent.{Await, Future}
import scala.jdk.CollectionConverters._

class FlinkTestMainSpec extends AnyWordSpec with Matchers with Inside with BeforeAndAfterEach with OptionValues {

Expand Down Expand Up @@ -765,6 +767,10 @@ class FlinkTestMainSpec extends AnyWordSpec with Matchers with Inside with Befor
): TestResults[_] = {
val config = enrichDefaultConfig(ConfigFactory.load("application.conf"))
.withValue("globalParameters.useIOMonadInInterpreter", ConfigValueFactory.fromAnyRef(useIOMonadInInterpreter))
.withValue(
"classpath",
ConfigValueFactory.fromIterable(FlinkTestConfiguration.classpathWorkaround.map(_.toString).asJava)
)

// We need to set context loader to avoid forking in sbt
val modelData = ModelData.duringFlinkExecution(
Expand Down

0 comments on commit 81d95d8

Please sign in to comment.