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:
1 parent
c5812c9964
commit
1577876fc2
1 file changed
+1
-1
@@ -604,7 +604,7 @@ func TestRelativeTime(t *testing.T) {
|
||||
{90000 * time.Second, "1d1h"},
|
||||
{400*24*time.Hour + 3*time.Hour, "400d3h"},
|
||||
// An event time ahead of the server clock.
|
||||
{-time.Hour, "0s"},
|
||||
{-90 * time.Second, "0s"},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in new issue
Block a user