diff --git a/pkg/server/server_systemlog_gc_test.go b/pkg/server/server_systemlog_gc_test.go index ed5810be2a04..09b828b3dbf6 100644 --- a/pkg/server/server_systemlog_gc_test.go +++ b/pkg/server/server_systemlog_gc_test.go @@ -67,7 +67,7 @@ func TestLogGC(t *testing.T) { a.NoError(err) } } - maxTS1 := timeutil.Now() + maxTS1 := timeutil.Now().Add(time.Duration(-24*7) * time.Hour) maxTS2 := maxTS1.Add(time.Second) maxTS3 := maxTS2.Add(time.Second) maxTS4 := maxTS3.Add(time.Second)