From 521068766329fd86444a065683e71fefd5e6b343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Schr=C3=B6der?= Date: Mon, 30 Dec 2024 11:33:47 +0100 Subject: [PATCH] Re-enable all unit tests. --- src/connectionTest.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connectionTest.test.ts b/src/connectionTest.test.ts index 328f97a..8428633 100644 --- a/src/connectionTest.test.ts +++ b/src/connectionTest.test.ts @@ -42,7 +42,7 @@ class TranslationMock implements Translate { } } -describe.only("connectionTest", function () { +describe("connectionTest", function () { describe("Name resolution", function () { it(`something.invalid should not be resolved`, async function () { const sut = new ConnectionTest(new TranslationMock()); @@ -55,10 +55,10 @@ describe.only("connectionTest", function () { expect(result).to.be.equal("127.0.0.1"); }); - it(`localhost should be resolved to 127.0.0.1`, async function () { + it(`localhost should be resolved to 127.0.0.1 (or ::1)`, async function () { const sut = new ConnectionTest(new TranslationMock()); const result = await sut.resolveName("localhost"); - expect(result).to.be.equal("127.0.0.1"); + expect(result).to.be.oneOf(["127.0.0.1", "::1"]); }); });