]> Sergey Matveev's repositories - public-inbox.git/commit
t/psgi_search: fix test around date boundaries
authorEric Wong <e@80x24.org>
Mon, 15 Feb 2021 02:36:38 +0000 (02:36 +0000)
committerEric Wong <e@80x24.org>
Mon, 15 Feb 2021 14:47:14 +0000 (08:47 -0600)
commit19e80e44033a56422a1de5c7e421a2d4c23ee64c
tree97fc4f6ef27de841165780b00730632de1fb5f2b
parentc471b946ef629cf3db9043081a1aeaa189436f6b
t/psgi_search: fix test around date boundaries

git approxidate won't actually return times in the future,
so "1.{hour,day,year}.from.now" all return the current epoch
time.

So just use "now" and ensure we have a predictable time zone for
testing.
t/psgi_search.t