From b3a1faa5c28f41746f174ee442c373211d562c47 Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Mon, 24 Jun 2024 11:11:49 -0400 Subject: [PATCH] remove actual resolution for dns resolve test (#4430) --- packages/datadog-plugin-dns/test/index.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/datadog-plugin-dns/test/index.spec.js b/packages/datadog-plugin-dns/test/index.spec.js index 98edb26ad1c..1457bb869d8 100644 --- a/packages/datadog-plugin-dns/test/index.spec.js +++ b/packages/datadog-plugin-dns/test/index.spec.js @@ -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 => {