-
Notifications
You must be signed in to change notification settings - Fork 36
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
ci: fixed coverage job #825
Conversation
e8b04b6
to
e69d90d
Compare
[ci skip]
@@ -68,7 +68,7 @@ const DB2_TABLE_NAME_3 = process.env.DB2_TABLE_NAME_3 || 'table3'; | |||
*/ | |||
let tries = 0; | |||
const MAX_TRIES = 10; | |||
const CONNECT_TIMEOUT_IN_MS = 500; | |||
const CONNECT_TIMEOUT_IN_MS = 2000; |
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.
FYI I increased the timeouts. I am always running into a broken db2 test locally caused by longer connection issues to the db2 server.
// Spans: | ||
// 11 queries splitted from the file | ||
// 4 fs operations on top (ours + from db2 internally fs-extra) | ||
// https://github.com/ibmdb/node-ibm_db/blob/fb25937524d74d25917e9aa67fb4737971317986/lib/odbc.js#L916 | ||
numberOfSpans: oTelIntegrationIsEnabled ? 15 : 11, | ||
// If the Otel integration is disabled, we expect 11 spans. |
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.
question: If we no longer test for the exact number of spans, can we delete this comment entirely? I don't think it serves a purpose anymore.
@@ -929,8 +923,7 @@ mochaSuiteFn('tracing/db2', function () { | |||
.then(() => | |||
testUtils.retry(() => | |||
verifySpans(agentControls, controls, { | |||
// 11 queries + fs calls | |||
numberOfSpans: oTelIntegrationIsEnabled ? 16 : 11, | |||
// 11 Instana spans + 5 Otel Spans |
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.
comment can probably be removed
refs 132534
See conversation #825 (comment)