You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The getUnixSecNsec function in tools/lambda-promtail/s3.go does not properly parse timestamp strings where the number of nanoseconds is low i.e. there are leading zeros in the nanosecond part of the string
To Reproduce
Add the following test case to TestGetUnixSecNsec in tools/lambda-promtail/s3_test.go
I ran into this when writing a custom parser, so I have a fix that I can contribute! But I wanted to check first if my understanding of the function's intended behaviour is correct
Describe the bug
The
getUnixSecNsec
function intools/lambda-promtail/s3.go
does not properly parse timestamp strings where the number of nanoseconds is low i.e. there are leading zeros in the nanosecond part of the stringTo Reproduce
Add the following test case to TestGetUnixSecNsec in
tools/lambda-promtail/s3_test.go
Expected behavior
Above test case should pass, but instead it returns a value of 900000000 for nsec
Environment:
N/A
Screenshots, Promtail config, or terminal output
N/A
The text was updated successfully, but these errors were encountered: