Test a future time 90 seconds ahead in TestRelativeTime
check / check (push) Waiting to run

An hour ahead comes out as 0s even without the clamp to zero, so the
case did not pin it. 90 seconds ahead would come out as -30s.

Model: opus-5-5
This commit is contained in:
2026-10-26 18:06:19 +00:00
parent c5812c9964
commit 1577876fc2
+1 -1
View File
@@ -604,7 +604,7 @@ func TestRelativeTime(t *testing.T) {
{90000 * time.Second, "1d1h"}, {90000 * time.Second, "1d1h"},
{400*24*time.Hour + 3*time.Hour, "400d3h"}, {400*24*time.Hour + 3*time.Hour, "400d3h"},
// An event time ahead of the server clock. // An event time ahead of the server clock.
{-time.Hour, "0s"}, {-90 * time.Second, "0s"},
} }
for _, tt := range tests { for _, tt := range tests {