Skip to content

Commit

Permalink
Fixes time-comparison in test
Browse files Browse the repository at this point in the history
This fixes #11 by using the `time.Time.Equal` function instead of the
implicit `==` operator (of `reflect.DeepEqual`) for comparing times in `conversion_test.go`
  • Loading branch information
danieljoos committed Feb 2, 2019
1 parent 1dcb5a2 commit b892d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestConversion(t *testing.T) {
assert.NotEqual(t, uintptr(0), sys.TargetName)
assert.Equal(t, cred.TargetName, res.TargetName)
assert.Equal(t, cred.Comment, res.Comment)
assert.Equal(t, cred.LastWritten, res.LastWritten)
assert.True(t, cred.LastWritten.Equal(res.LastWritten))
assert.Equal(t, cred.TargetAlias, res.TargetAlias)
assert.Equal(t, cred.UserName, res.UserName)
cred.TargetName = "Another Foo"
Expand Down

0 comments on commit b892d33

Please sign in to comment.