test: adapt to cds 9#344
Closed
hm23 wants to merge 2 commits into
Closed
Conversation
hm23
commented
May 28, 2025
| // 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) |
Contributor
Author
Contributor
There was a problem hiding this comment.
i think we should deactivate the queue for the existing tests and then add extra ones for it
Contributor
Author
There was a problem hiding this comment.
Not sure if I understand your comment, sorry. Tests for outbox: false are already in place in test/tracing-messaging-without-outbox.test.js, or?
Contributor
There was a problem hiding this comment.
right, but that worked because the persistent outbox was off by default, i.e., the disabling was omitted. now, we need to explicitly set the in memory outbox: https://github.com/cap-js/telemetry/pull/338/files#diff-08b958738e72f5b16d4eb669fe005de06cf9dfc430ecda1494064d1dec87c93bR5
hm23
commented
May 28, 2025
| '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}$/), |
Contributor
Author
There was a problem hiding this comment.
stacktrace got shorter...
Contributor
|
superseded by #338 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.