Skip to content

Commit

Permalink
Fix IrsDemoTest for days that have a fixing. (corda#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-r3 authored Sep 8, 2017
1 parent df31e52 commit 41a94d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ class IRSDemoTest : IntegrationTestCategory {
assertThat(getFloatingLegFixCount(nodeAApi) == 0)

// Wait until the initial trade and all scheduled fixings up to the current date have finished
nextFixingDates.firstWithTimeout(maxWaitTime){ it == null || it > currentDate }
nextFixingDates.firstWithTimeout(maxWaitTime) { it == null || it >= currentDate }
runDateChange(nodeBApi)
nextFixingDates.firstWithTimeout(maxWaitTime) { it == null || it > futureDate }
nextFixingDates.firstWithTimeout(maxWaitTime) { it == null || it >= futureDate }

assertThat(getFloatingLegFixCount(nodeAApi) > 0)
}
Expand Down

0 comments on commit 41a94d1

Please sign in to comment.