test/Tweak default to date value in order to prevent cache issue

This commit is contained in:
Marko Milić 2023-10-19 16:36:51 +02:00
parent e14f1c7d3a
commit aeef581dff

View File

@ -295,7 +295,7 @@ class APIUtilTest extends FeatureSpec with Matchers with GivenWhenThen with Prop
val returnValue = getToDate(httpParams)
returnValue.toString should startWith("Full(OBPToDate")
val currentTime = OBPToDate(DefaultToDate)
val currentTime = OBPToDate(ToDateInFuture)
val beWithinTolerance = be >= startTime and be <= currentTime
returnValue.orNull should beWithinTolerance
}
@ -309,7 +309,7 @@ class APIUtilTest extends FeatureSpec with Matchers with GivenWhenThen with Prop
val returnValue = getToDate(httpParams)
returnValue.toString should startWith("Full(OBPToDate")
val currentTime = OBPToDate(DefaultToDate)
val currentTime = OBPToDate(ToDateInFuture)
val beWithinTolerance = be >= startTime and be <= currentTime
returnValue.orNull should beWithinTolerance
}