diff --git a/src/orkes/request/fetchCatchDns/__test__/DnsCache.test.ts b/src/orkes/request/fetchCatchDns/__test__/DnsCache.test.ts index 28204ad..3071f8e 100644 --- a/src/orkes/request/fetchCatchDns/__test__/DnsCache.test.ts +++ b/src/orkes/request/fetchCatchDns/__test__/DnsCache.test.ts @@ -2,12 +2,13 @@ import { expect, describe, test } from "@jest/globals"; import { DnsCacheResolver } from "../DnsCache"; const sampleDomain = "orkes.io"; -const nonExistingDomain = "non-existing-domain.orkes.io"; +const nonExistingDomain = "non-existing-domain.orkesdemo.io"; describe("dnsResolver", () => { test("Should resolve dns", async () => { const dnsCacheResolver1 = new DnsCacheResolver(); const ip = await dnsCacheResolver1.resolve(sampleDomain); + console.log(`${sampleDomain} resolved to ip: ${ip}`); expect(ip).toBeDefined(); expect(dnsCacheResolver1.cache.size).toBe(1); }); @@ -15,6 +16,7 @@ describe("dnsResolver", () => { test("Should return empty if domain could not be resolved", async () => { const dnsCacheResolver2 = new DnsCacheResolver(); const ip = await dnsCacheResolver2.resolve(nonExistingDomain); + console.log(`${nonExistingDomain} resolved to ip: ${ip}`); expect(ip).not.toBeDefined(); expect(dnsCacheResolver2.cache.size).toBe(0); });