@@ -25,7 +25,7 @@ class ExecutionTimeframeTest : StringSpec({
2525 timeframe.lastRunTime shouldBe lastRunTime
2626 timeframe.currentRunTime.isAfter(Instant .now()) shouldBe false
2727 // Should not be capped
28- timeframe.getFreshlyUpdatedJql() shouldNotContain " AND created <= "
28+ timeframe.getFreshlyUpdatedJql() shouldNotContain " AND updated <= "
2929
3030 val delayedStart = LocalDateTime .of(2021, 1, 1, 12, 0, 0)
3131 .atZone(ZoneOffset .UTC )
@@ -35,7 +35,7 @@ class ExecutionTimeframeTest : StringSpec({
3535 // Shift timeframe to start at `offsetBaseInstant`
3636 // Note: Cannot hardcode `delayedEnd` value in string because it depends on how fast
3737 // `ExecutionTimeframe.getTimeframeFromLastRun` executes
38- timeframe.getDelayedUpdatedJql(offset) shouldBe " created > 1609502400000 AND created <= ${delayedEnd.toEpochMilli()} "
38+ timeframe.getDelayedUpdatedJql(offset) shouldBe " updated > 1609502400000 AND updated <= ${delayedEnd.toEpochMilli()} "
3939 }
4040
4141 " getTimeframeFromLastRun should return the correct timeframe if last run was a while ago" {
@@ -56,7 +56,7 @@ class ExecutionTimeframeTest : StringSpec({
5656
5757 timeframe.lastRunTime shouldBe lastRunTime
5858 timeframe.currentRunTime shouldBe timeframeEnd
59- timeframe.getFreshlyUpdatedJql() shouldBe " created > 1609502400000 AND created <= 1609503000000"
60- timeframe.getDelayedUpdatedJql(Duration .ofHours(1)) shouldBe " created > 1609498800000 AND created <= 1609499400000"
59+ timeframe.getFreshlyUpdatedJql() shouldBe " updated > 1609502400000 AND updated <= 1609503000000"
60+ timeframe.getDelayedUpdatedJql(Duration .ofHours(1)) shouldBe " updated > 1609498800000 AND updated <= 1609499400000"
6161 }
6262})
0 commit comments