Skip to content

Commit 3ecae66

Browse files
committed
Skip mdns tests on macOS in CI
1 parent 9afd260 commit 3ecae66

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

p2p/discovery/mdns/mdns_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package mdns
22

33
import (
4+
"os"
5+
"runtime"
46
"sync"
57
"testing"
68
"time"
@@ -47,6 +49,10 @@ func (n *notif) GetPeers() []peer.AddrInfo {
4749
}
4850

4951
func TestOtherDiscovery(t *testing.T) {
52+
if runtime.GOOS != "linux" && os.Getenv("CI") != "" {
53+
t.Skip("this test is flaky on CI outside of linux")
54+
}
55+
5056
const n = 4
5157

5258
notifs := make([]*notif, n)
@@ -91,8 +97,8 @@ func TestOtherDiscovery(t *testing.T) {
9197
}
9298
return true
9399
},
94-
25*time.Second,
95-
5*time.Millisecond,
100+
5*time.Second,
101+
100*time.Millisecond,
96102
"expected peers to find each other",
97103
)
98104
}

0 commit comments

Comments
 (0)