Skip to content

Commit

Permalink
chore(test): update test to reflect class change (#3051)
Browse files Browse the repository at this point in the history
  • Loading branch information
asher authored Jul 19, 2019
1 parent 69458ec commit 20411ac
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class RestrictExecutionDuringTimeWindowSpec extends Specification {
restrictExecutionDuringTimeWindow.taskGraph(restrictExecutionStage, builder)

then:
if (jitterEnabled && max != null) {
if (jitterEnabled && max > 0) {
assert restrictExecutionStage.context.waitTime != null
assert (restrictExecutionStage.context.waitTime >= min && restrictExecutionStage.context.waitTime <= max)
} else {
Expand All @@ -203,10 +203,9 @@ class RestrictExecutionDuringTimeWindowSpec extends Specification {
where:
jitterEnabled | min | max | waitTaskCount
true | 60 | 600 | 1
true | null | 600 | 1
true | null | null | 0
true | 0 | 600 | 1
true | 0 | 0 | 0
false | 60 | 600 | 0
false | null | null | 0
}

private hourMinute(String hourMinuteStr) {
Expand Down

0 comments on commit 20411ac

Please sign in to comment.