Skip to content

Commit

Permalink
remove actual resolution for dns resolve test (#4430)
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev authored and juan-fernandez committed Jul 11, 2024
1 parent e751a8d commit b3a1faa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/datadog-plugin-dns/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ describe('Plugin', () => {
expect(traces[0][0]).to.deep.include({
name: 'dns.resolve',
service: 'test',
resource: 'ANY lvh.me'
resource: 'ANY localhost'
})
expect(traces[0][0].meta).to.deep.include({
component: 'dns',
'span.kind': 'client',
'dns.hostname': 'lvh.me',
'dns.hostname': 'localhost',
'dns.rrtype': 'ANY'
})
})
.then(done)
.catch(done)

dns.resolveAny('lvh.me', err => err && done(err))
dns.resolveAny('localhost', () => done())
})

it('should instrument reverse', done => {
Expand Down

0 comments on commit b3a1faa

Please sign in to comment.