Skip to content

Commit

Permalink
some improvements to use better matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkhi committed Feb 11, 2025
1 parent 560e933 commit 054f57e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Lambda extends LambdaRunner[Option[Input], Unit, Config, Dependencies] {
val luckyDip = dependencies.randomInt(1, maxRandomValue)
val sourceSystemEntry = sourceSystemProbabilities.find((_, probRange) => probRange.startInclusive <= luckyDip && probRange.endExclusive > luckyDip).get
val systemToStartTaskOn = sourceSystemEntry._1
val systemProbabilitiesStr = sourceSystemProbabilities.map { case (system, range) => s"$system -> (${range.startInclusive}, ${range.endExclusive})"}.mkString(", ")
val systemProbabilitiesStr = sourceSystemProbabilities.map { case (system, range) => s"$system -> (${range.startInclusive}, ${range.endExclusive})" }.mkString(", ")
logger.info(
Map(
"executionName" -> executionNameForLogging,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LambdaTest extends AnyFlatSpec with EitherValues:
lambdaRunResult.result.isLeft should be(true)
lambdaRunResult.result.left.value.getMessage should equal("Error getting parameter")
lambdaRunResult.finalItemsInTable should have length 1
lambdaRunResult.finalItemsInTable.head.taskToken should be ("taskToken")
lambdaRunResult.finalItemsInTable.head.taskToken should be("taskToken")
lambdaRunResult.finalStepFnExecutions should have length 1
lambdaRunResult.finalStepFnExecutions.find(_.taskToken == "taskToken") should be(defined)
lambdaRunResult.finalStepFnExecutions.find(_.taskToken == "taskToken").exists(_.taskTokenSuccess) should be(false)
Expand Down

0 comments on commit 054f57e

Please sign in to comment.