Skip to content

Commit

Permalink
Adapt tests to the new structure of timeout message
Browse files Browse the repository at this point in the history
  • Loading branch information
questras committed Jan 15, 2024
1 parent ee84165 commit 6cafb26
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ class PollingConditionsSpec extends Specification {
where:
onTimeoutClosure || expectedMessageSuffix
null || ""
noArgClosure || " with message: test"
throwableArgClosure || " with message: ConditionNotSatisfiedError"
noArgClosure || ": test"
throwableArgClosure || ": ConditionNotSatisfiedError"
}

def "correctly creates timeout error message when onTimeout called multiple times"() {
Expand All @@ -211,7 +211,7 @@ class PollingConditionsSpec extends Specification {
where:
onTimeoutClosure | secondOnTimeoutClosure || expectedMessageSuffix
noArgClosure | null || ""
null | noArgClosure || " with message: test"
throwableArgClosure | noArgClosure || " with message: test"
null | noArgClosure || ": test"
throwableArgClosure | noArgClosure || ": test"
}
}

0 comments on commit 6cafb26

Please sign in to comment.