Skip to content

Commit

Permalink
Merge pull request #1167 from ydb-platform/fix-test
Browse files Browse the repository at this point in the history
fix flaky logger test
  • Loading branch information
asmyasnikov authored Mar 27, 2024
2 parents e959a37 + 10d715a commit e66f15b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions log/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
)

func TestColoring(t *testing.T) {
zeroClock := clockwork.NewFakeClock()
fullDuration := zeroClock.Now().Sub(time.Date(1984, 4, 4, 0, 0, 0, 0, time.UTC))
zeroClock.Advance(-fullDuration) // set zero time
zeroClock := clockwork.NewFakeClockAt(
time.Date(1984, 4, 4, 0, 0, 0, 0, time.UTC),
)
for _, tt := range []struct {
l *defaultLogger
msg string
Expand Down

0 comments on commit e66f15b

Please sign in to comment.