fix: bound OTEL shutdown so CI tests do not hang
sonar / sonar (push) Skipped
sonar / sonar (pull_request) Failing after 1m8s
sonar / sonar (push) Skipped
sonar / sonar (pull_request) Failing after 1m8s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user