Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Fix nanosecond logging test #1017

Closed
jodh-intel opened this issue Feb 21, 2018 · 0 comments
Closed

Fix nanosecond logging test #1017

jodh-intel opened this issue Feb 21, 2018 · 0 comments
Assignees

Comments

@jodh-intel
Copy link
Contributor

TestNewSystemLogHook() checks to ensure a nanonsecond timestamp is generated. However, time.RFC3339Nano truncates trailing zeros so the current test is incorrect.

@jodh-intel jodh-intel self-assigned this Feb 21, 2018
jodh-intel added a commit to jodh-intel/runtime that referenced this issue Feb 21, 2018
`TestNewSystemLogHook()` checks to ensure a nanonsecond timestamp is
generated. However, the `time.RFC3339Nano` time format truncates
trailing zeros meaning a nanosecond timestamp won't always have nine
digits.

Fixes clearcontainers#1017.

Signed-off-by: James O. D. Hunt <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant