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' } 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}`, () => {