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 26ee650 commit 825327bCopy full SHA for 825327b
packages/datadog-plugin-net/test/index.spec.js
@@ -230,8 +230,14 @@ describe('Plugin', () => {
230
socket.destroy()
231
232
socket.once('close', () => {
233
- expect(socket.eventNames()).to.not.include.members(events)
234
- done()
+ setImmediate(() => {
+ // Node.js 21.2 broke this function. We'll have to do the more manual way for now.
235
+ // expect(socket.eventNames()).to.not.include.members(events)
236
+ for (const event of events) {
237
+ expect(socket.listeners(event)).to.have.lengthOf(0)
238
+ }
239
+ done()
240
+ })
241
})
242
243
0 commit comments