fix: bound OTEL shutdown so CI tests do not hang
sonar / sonar (push) Skipped
sonar / sonar (pull_request) Failing after 1m8s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-11 15:11:31 -03:00
co-authored by Cursor
parent b3f515bb64
commit d0d5d9a7a6
3 changed files with 27 additions and 14 deletions
+1 -2
View File
@@ -3,8 +3,7 @@ import test from "node:test";
import { SeverityNumber, startTelemetry } from "./telemetry.js";
test("startTelemetry emits and shuts down without throwing", async () => {
process.env.OTEL_EXPORTER_OTLP_ENDPOINT =
process.env.OTEL_EXPORTER_OTLP_ENDPOINT ?? "http://127.0.0.1:4318";
process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "http://127.0.0.1:9";
process.env.OTEL_SERVICE_NAME = "ticketlab-test";
const telemetry = startTelemetry("ticketlab-test");