internal/handlers: tidy up test times

This commit is contained in:
Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:21 -08:00
1 parent bcddef87a2
commit f89e53d5f0
1 file changed
+6 -6
@@ -24,12 +24,12 @@ func Test_ParseListToken(t *testing.T) {
t.Parallel()
fiveDaysAgo := time.Now().AddDate(0, 0, -5)
tokenCreateTime := fiveDaysAgo
lastItemCreateTime := fiveDaysAgo.Add(time.Hour)
lastItemUpdateTime := fiveDaysAgo.Add(2 * time.Hour)
previousPhaseUpperBoundTime := fiveDaysAgo.Add(3 * time.Hour)
previousDeletedIdsTime := fiveDaysAgo.Add(4 * time.Hour)
phaseLowerBound := fiveDaysAgo.Add(5 * time.Hour)
phaseUpperBound := fiveDaysAgo.Add(6 * time.Hour)
lastItemCreateTime := fiveDaysAgo.Add(-2 * time.Hour)
lastItemUpdateTime := fiveDaysAgo.Add(-time.Hour)
previousPhaseUpperBoundTime := fiveDaysAgo.Add(4 * time.Hour)
previousDeletedIdsTime := fiveDaysAgo.Add(3 * time.Hour)
phaseLowerBound := fiveDaysAgo.Add(time.Hour)
phaseUpperBound := fiveDaysAgo.Add(2 * time.Hour)
t.Run("valid pagination", func(t *testing.T) {
t.Parallel()