Skip to content

Commit

Permalink
fix: closing the mDNS connection upon stopping the network
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Jun 14, 2023
1 parent 2018a5d commit 20beefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/mdns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
)

func TestMdns(t *testing.T) {
for n := 0; n < 60; n++ {
for n := 0; n < 6; n++ {
nets := [2]*network{}
fmt.Printf("=========== starting %v", n)
for i := 0; i < 2; i++ {
conf := testConfig()
conf.Listens = []string{"/ip4/127.0.0.1/udp/0/quic"}
conf.Listens = []string{"/ip4/127.0.0.1/tcp/0"}
conf.EnableMdns = true
nets[i] = makeTestNetwork(t, conf, []lp2p.Option{
lp2p.ForceReachabilityPrivate(),
Expand Down

0 comments on commit 20beefe

Please sign in to comment.