Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bjankulovski committed Jun 5, 2022
1 parent 6addbe9 commit 38bbfd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thread_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,10 @@ func TestThread(t *testing.T) {
t.Run("Test converting Filetime to Unix nano seconds", func(t *testing.T) {
want := time.Now().UTC().UnixNano()
ft := UnixNanoToFiletime(want)
if got := ft.UnixNanoseconds(); got != want {
if got := ft.UnixNanoseconds(); got/100 != want/100 {
t.Errorf("Invalid Filetime conversion!\ngot: %v\nwant: %v", got, want)
}
t.Logf("DIFF:%v", want/100)
})
t.Run("Test converting Bytes to Int", func(t *testing.T) {
want := int64(123456789)
Expand Down

0 comments on commit 38bbfd1

Please sign in to comment.