From b2f230a83f5790746c60369e3e231da074f17777 Mon Sep 17 00:00:00 2001 From: Rostam Date: Tue, 28 Nov 2023 12:29:29 +0000 Subject: [PATCH] test(mdns): fix MDNS test issue (#827) --- network/mdns_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/network/mdns_test.go b/network/mdns_test.go index 036009e0f..044448393 100644 --- a/network/mdns_test.go +++ b/network/mdns_test.go @@ -9,12 +9,18 @@ import ( func TestMDNS(t *testing.T) { conf1 := testConfig() - conf1.ListenAddrStrings = []string{"/ip4/127.0.0.1/tcp/0"} + conf1.ListenAddrStrings = []string{ + "/ip6/::1/tcp/0", "/ip6/::1/udp/0/quic-v1", + "/ip4/127.0.0.1/tcp/0", "/ip4/127.0.0.1/udp/0/quic-v1", + } conf1.EnableMdns = true net1 := makeTestNetwork(t, conf1, nil) conf2 := testConfig() - conf2.ListenAddrStrings = []string{"/ip4/127.0.0.1/tcp/0"} + conf2.ListenAddrStrings = []string{ + "/ip6/::1/tcp/0", "/ip6/::1/udp/0/quic-v1", + "/ip4/127.0.0.1/tcp/0", "/ip4/127.0.0.1/udp/0/quic-v1", + } conf2.EnableMdns = true net2 := makeTestNetwork(t, conf2, nil)