Skip to content

Commit e5b72cc

Browse files
committed
Tiny fixups.
1 parent bc55740 commit e5b72cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pramen/core/src/main/scala/za/co/absa/pramen/core/utils/JdbcNativeUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ object JdbcNativeUtils {
135135
case ex: SQLException if retriesLeft > 0 && ex.getMessage.contains("Index: 1, Size: 1") =>
136136
log.error(s"Error executing query. Retries left = $retriesLeft. Retrying...", ex)
137137
executeQuery(statement, query, retriesLeft - 1)
138-
case ex =>
138+
case ex: Throwable =>
139139
throw ex
140140
}
141141
}

pramen/core/src/test/scala/za/co/absa/pramen/core/cmd/CmdLineConfigSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ class CmdLineConfigSuite extends AnyWordSpec {
130130

131131
"CmdLineConfig.applyCmdLineToConfig()" should {
132132
"return a modified config if the list of operations is specified" in {
133-
val cmd = CmdLineConfig.parseCmdLine(Array("--workflow", "dummy.config", "--ops", "table_1,table_2,table_3"))
133+
val cmd = CmdLineConfig.parseCmdLine(Array("--workflow", "dummy.config", "--ops", "table_1,table_2,table_3,table_4->table_5"))
134134
val config = CmdLineConfig.applyCmdLineToConfig(emptyConfig, cmd.get)
135135

136136
assert(config.hasPath(RUN_TABLES))
137-
assert(ConfigUtils.getOptListStrings(config, RUN_TABLES) == Seq("table_1", "table_2", "table_3"))
137+
assert(ConfigUtils.getOptListStrings(config, RUN_TABLES) == Seq("table_1", "table_2", "table_3", "table_4->table_5"))
138138
}
139139

140140
"return a modified config if number of parallel tasks is specified" in {

0 commit comments

Comments
 (0)