From e454fca3185f57330b947701f04f3318fb318e90 Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:05:28 +0200 Subject: [PATCH] chore: fix tests --- integration_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration_test.go b/integration_test.go index 41eda0a..6dd2da0 100644 --- a/integration_test.go +++ b/integration_test.go @@ -114,7 +114,7 @@ func TestBasicIntegration(t *testing.T) { obj.Value("CidInDHT").Boolean().IsTrue() obj.Value("ConnectionError").String().IsEmpty() - obj.Value("ConnectionMaddr").String().IsEqual(hostAddr.String()) + obj.Value("ConnectionMaddrs").Array().ContainsAll(h.Addrs()[0]) obj.Value("DataAvailableOverBitswap").Object().Value("Error").String().IsEmpty() obj.Value("DataAvailableOverBitswap").Object().Value("Found").Boolean().IsTrue() obj.Value("DataAvailableOverBitswap").Object().Value("Responded").Boolean().IsTrue() @@ -134,7 +134,7 @@ func TestBasicIntegration(t *testing.T) { obj.Value("CidInDHT").Boolean().IsFalse() obj.Value("ConnectionError").String().IsEmpty() - obj.Value("ConnectionMaddr").String().IsEqual(hostAddr.String()) + obj.Value("ConnectionMaddrs").Array().ContainsAll(h.Addrs()[0]) obj.Value("DataAvailableOverBitswap").Object().Value("Error").String().IsEmpty() obj.Value("DataAvailableOverBitswap").Object().Value("Found").Boolean().IsTrue() obj.Value("DataAvailableOverBitswap").Object().Value("Responded").Boolean().IsTrue() @@ -152,7 +152,7 @@ func TestBasicIntegration(t *testing.T) { obj.Value("CidInDHT").Boolean().IsTrue() obj.Value("ConnectionError").String().IsEmpty() - obj.Value("ConnectionMaddr").String().IsEqual(hostAddr.String()) + obj.Value("ConnectionMaddrs").Array().ContainsAll(h.Addrs()[0]) obj.Value("DataAvailableOverBitswap").Object().Value("Error").String().IsEmpty() obj.Value("DataAvailableOverBitswap").Object().Value("Found").Boolean().IsFalse() obj.Value("DataAvailableOverBitswap").Object().Value("Responded").Boolean().IsTrue()