Skip to content

Commit

Permalink
[chore] fix failing syslog load test (open-telemetry#37197)
Browse files Browse the repository at this point in the history
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

The loadtest is failing due to missing year in the timestamp. The
timestamp `Oct 11 22:14:15` was until Oct 10 2024 calculated with the
year 2023 (`1697062455000000000`) and since then, it by default takes
the year 2024, so it results in the following timestamp
`1728684855000000000` and causes the test to fail.

Failing run on main:
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/12757989830/job/35563296082

## Note

failing lint test will be resolved in a separate PR
open-telemetry#37194

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
  • Loading branch information
odubajDT authored Jan 16, 2025
1 parent 268121b commit ce77582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testbed/tests/syslog_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestSyslogComplementaryRFC5424(t *testing.T) {
func TestSyslogComplementaryRFC3164(t *testing.T) {
expectedData := []expectedDataType{
{
message: "<34>Oct 11 22:14:15 mymachine su: 'su root' failed for lonvick on /dev/pts/8",
message: "<34>Oct 11 2023 22:14:15 mymachine su: 'su root' failed for lonvick on /dev/pts/8",
timestamp: 1697062455000000000,
severityNumber: 18,
severityText: "crit",
Expand All @@ -82,7 +82,7 @@ func TestSyslogComplementaryRFC3164(t *testing.T) {
},
},
{
message: "<19>Oct 11 22:14:15 - -",
message: "<19>Oct 11 2023 22:14:15 - -",
timestamp: 1697062455000000000,
severityNumber: 17,
severityText: "err",
Expand Down

0 comments on commit ce77582

Please sign in to comment.