Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nanosecond offset in TimeToString test #6

Merged
merged 1 commit into from Dec 25, 2018
Merged

Fix nanosecond offset in TimeToString test #6

merged 1 commit into from Dec 25, 2018

Conversation

ghost
Copy link

@ghost ghost commented Dec 24, 2018

Each audit record should be tagged with the timestamp
the packet was seen, in the format seconds.microseconds

The TimeToString/StringToTime test's expected and actual timestamps
were using different subsecond precisions (microseconds vs. time.Time's
default nanoseconds)

This commit dials the expected timestamp down to microsecond precision.

  • Before: 2018-12-24 23:23:45.323381814 +0100 CET
  • After: 2018-12-24 23:23:45.323381 +0100 CET

> Each audit record should be tagged with the timestamp
> the packet was seen, in the format seconds.microseconds

The TimeToString/StringToTime test's expected and actual timestamps
were using different subsecond precisions (microseconds vs. time.Time's
default nanoseconds)

This commit dials the expected timestamp down to microsecond precision.

- Before: 2018-12-24 23:23:45.323381814 +0100 CET
- After: 2018-12-24 23:23:45.323381 +0100 CET
@dreadl0ck dreadl0ck merged commit d20c88f into dreadl0ck:master Dec 25, 2018
@dreadl0ck
Copy link
Owner

Good catch! Thanks :)

@ghost ghost deleted the fix/test-ns-offset branch December 25, 2018 16:26
@ghost
Copy link
Author

ghost commented Dec 25, 2018

Well the test was failing for me so it stood out :) Thanks for the quick merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant