We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd74266 commit d59d597Copy full SHA for d59d597
p2p/discovery/mdns/mdns_test.go
@@ -1,6 +1,8 @@
1
package mdns
2
3
import (
4
+ "os"
5
+ "runtime"
6
"sync"
7
"testing"
8
"time"
@@ -47,6 +49,10 @@ func (n *notif) GetPeers() []peer.AddrInfo {
47
49
}
48
50
51
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
+
56
const n = 4
57
58
notifs := make([]*notif, n)
@@ -91,8 +97,8 @@ func TestOtherDiscovery(t *testing.T) {
91
97
92
98
return true
93
99
},
94
- 25*time.Second,
95
- 5*time.Millisecond,
100
+ 5*time.Second,
101
+ 100*time.Millisecond,
96
102
"expected peers to find each other",
103
)
104
0 commit comments