]> git.giacomolli.uk - onechat/blobdiff - log_test.go
Refer to the design without names
[onechat] / log_test.go
index 60b9b6428e68d2576fd35b933125e4e50f186ebc..89b87b337a7240709934057742938fd2f5b39f59 100644 (file)
@@ -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
-}