Skip to content

Commit

Permalink
test(backend): fix broken hlc test
Browse files Browse the repository at this point in the history
  • Loading branch information
burdiyan committed Feb 27, 2024
1 parent 3113f4f commit 5670230
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/hlc/hlc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ func TestCoverage(t *testing.T) {
c.nowFunc = time.Now

{
now := time.Now()
ts := FromTime(now)
require.True(t, now.Equal(ts.Time()), "timestamp must be convertible to time")
want := time.Now()
ts := FromTime(want)
got := ts.Time()
require.True(t, want.Equal(got), "timestamp must be convertible to time want=%d got=%d", want.UnixMicro(), got.UnixMicro())
}

{
Expand Down

0 comments on commit 5670230

Please sign in to comment.