Fix IrsDemoTest for days that have a fixing. (#1456)

This commit is contained in:
Rick Parker 2017-09-08 13:15:04 +01:00 committed by GitHub
parent df31e52665
commit 41a94d1624

View File

@ -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)
}