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
@@ -13,8 +13,7 @@ describe("greet", () => {
});
it("main emits telemetry and logs greeting", 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";
const logs: unknown[] = [];
const original = console.log;
console.log = (...args: unknown[]) => {