We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d52cd1 commit a08d0a3Copy full SHA for a08d0a3
packages/datadog-instrumentations/test/mysql2.spec.js
@@ -440,14 +440,13 @@ describe('mysql2 instrumentation', () => {
440
startCh.subscribe(noop)
441
const query = pool.query(sql)
442
443
- let error
444
- query.on('error', err => { error = err })
445
- expect(query.listenerCount('error')).to.equal(1)
+ expect(query.listenerCount('error')).to.equal(0)
446
447
await once(query, 'end')
448
+
449
sinon.assert.called(apmQueryStart)
450
- expect(error).to.be.undefined
451
})
452
453
it('should work without subscriptions', (done) => {
0 commit comments