Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Sep 15, 2023
1 parent 54f99f7 commit 4f5fdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rawlog/raw_log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func Test_NewRawLog(t *testing.T) {
t.Errorf("want not nil, got nil")
continue
}
if got.TimeStamp != tc.want.TimeStamp {
t.Errorf("want timestamp %v, got %v", tc.want.TimeStamp, got.TimeStamp)
if got.TimeStamp.Unix() != tc.want.TimeStamp.Unix() {
t.Errorf("want timestamp %v, got %v", tc.want.TimeStamp.Unix(), got.TimeStamp.Unix())
}
if got.Level != tc.want.Level {
t.Errorf("want level %s, got %s", tc.want.Level, got.Level)
Expand Down

0 comments on commit 4f5fdc5

Please sign in to comment.