-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
flaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.
Description
From time to time we get this test error in PRs and in main branch
running: (cd "/home/runner/work/elastic-otel-node/elastic-otel-node/packages/opentelemetry-node/test" && NODE_OPTIONS=--require=@elastic/opentelemetry-node node ./fixtures/use-mongoose.js)
# elapsed: 1.351s
# stdout:
# |{"name":"elastic-otel-node","level":30,"preamble":true,"distroVersion":"1.0.0","env":{"os":"linux 6.8.0-1021-azure","arch":"x64","runtime":"Node.js v22.14.0"},"msg":"start Elastic Distribution of OpenTelemetry Node.js","time":"2025-04-09T09:17:46.211Z"}
# |user saved {
# | email: '[email protected]',
# | name: 'John Doe',
# | age: 18,
# | _id: new ObjectId('67f63b3a3e9fd30b1044b4f5'),
# | __v: 0
# |}
# stderr: <empty>
ok 372 exited successfully: err=null
not ok 373 should be strictly equal
---
operator: equal
expected: 7
actual: 6
at: Object.checkTelemetry (/home/runner/work/elastic-otel-node/elastic-otel-node/packages/opentelemetry-node/test/instr-mongoose.test.js:44:15)
stack: |-
Error: should be strictly equal
at Test.assert [as _assert] (/home/runner/work/elastic-otel-node/elastic-otel-node/packages/opentelemetry-node/node_modules/tape/lib/test.js:492:48)
at Test.strictEqual (/home/runner/work/elastic-otel-node/elastic-otel-node/packages/opentelemetry-node/node_modules/tape/lib/test.js:670:7)
at Object.checkTelemetry (/home/runner/work/elastic-otel-node/elastic-otel-node/packages/opentelemetry-node/test/instr-mongoose.test.js:44:15)
at done (/home/runner/work/elastic-otel-node/elastic-otel-node/packages/opentelemetry-node/test/testutils.js:668:46)
at ChildProcess.exithandler (node:child_process:407:7)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
Metadata
Metadata
Assignees
Labels
flaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.