X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/feda522eba3e2a27c91741c77d0d01f1840c0004..56129a5:/log_test.go diff --git a/log_test.go b/log_test.go index 60b9b64..89b87b3 100644 --- a/log_test.go +++ b/log_test.go @@ -145,18 +145,3 @@ func TestLogRejectsAGapInTheIDs(t *testing.T) { func truncateToOneAndAHalf(path string) error { return os.Truncate(path, positionBytes+positionBytes/2) } - -// testClock is a clock that tests set by hand. -type testClock struct { - now time.Time -} - -func newTestClock() *testClock { - return &testClock{ - now: time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC), - } -} - -func (c *testClock) Now() time.Time { - return c.now -}