Skip to content

Commit

Permalink
test(mdns): fix MDNS test issue (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy authored Nov 28, 2023
1 parent 920046c commit b2f230a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions network/mdns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b2f230a

Please sign in to comment.