From 883b7b515b49af5aceb2acdad129e20d4a13f147 Mon Sep 17 00:00:00 2001 From: Heiko Witteborg Date: Wed, 28 May 2025 11:47:53 +0200 Subject: [PATCH 1/2] Update logging.test.js --- test/logging.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/logging.test.js b/test/logging.test.js index f09a958d..397c3836 100644 --- a/test/logging.test.js +++ b/test/logging.test.js @@ -50,7 +50,7 @@ describe('logging', () => { attributes: { 'log.type': 'LogRecord', 'exception.message': "Cannot read properties of undefined (reading 'exist')", - 'exception.stacktrace': s => s.match(/^TypeError: .+(\n\s+at .+){6}$/), + 'exception.stacktrace': s => s.match(/^TypeError: .+(\n\s+at .+){5}$/), 'exception.type': 'TypeError', foo: 'bar' } From 71f7fa9d3404320911a4a0d52628ec8516b44a17 Mon Sep 17 00:00:00 2001 From: Heiko Witteborg Date: Wed, 28 May 2025 11:49:43 +0200 Subject: [PATCH 2/2] Update tracing-messaging-with-outbox.test.js --- test/tracing-messaging-with-outbox.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/tracing-messaging-with-outbox.test.js b/test/tracing-messaging-with-outbox.test.js index 6da1fa01..d58eb0c2 100644 --- a/test/tracing-messaging-with-outbox.test.js +++ b/test/tracing-messaging-with-outbox.test.js @@ -8,9 +8,7 @@ const env = { process.env.cds_requires_messaging = JSON.stringify(env) const CHECK = (log, expect) => { - // 2: no outbox -> consumer gets new root context - // REVISIT: for some reason, the emit done in the on succeeded callback gets a new root context when running in jest - expect(log.output.match(/\[telemetry\] - elapsed times:/g).length).to.equal(3) //> actually 2 + expect(log.output.match(/\[telemetry\] - elapsed times:/g).length).to.equal(4) } describe(`tracing messaging - ${CASE}`, () => {