-
Notifications
You must be signed in to change notification settings - Fork 12
test: adapt to cds 9 #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: adapt to cds 9 #344
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if I understand your comment, sorry. Tests for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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 |
||
} | ||
|
||
describe(`tracing messaging - ${CASE}`, () => { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stacktrace got shorter...