mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
add test that fails on go1.10.*
This commit is contained in:
parent
f7eb3ca99f
commit
af2921498b
4 changed files with 20 additions and 9 deletions
|
@ -45,7 +45,8 @@ func TestBroadcastTAP(t *testing.T) {
|
|||
startBroadcast(t, brd)
|
||||
|
||||
dataCh := make(chan []byte, 8)
|
||||
startRead(dataCh, ifce)
|
||||
errCh := make(chan error)
|
||||
startRead(t, ifce, dataCh, errCh)
|
||||
|
||||
timeout := time.NewTimer(8 * time.Second).C
|
||||
|
||||
|
@ -75,6 +76,8 @@ readFrame:
|
|||
}
|
||||
t.Logf("received broadcast frame: %#v\n", buffer)
|
||||
break readFrame
|
||||
case err := <-errCh:
|
||||
t.Fatalf("read error: %v", err)
|
||||
case <-timeout:
|
||||
t.Fatal("Waiting for broadcast packet timeout")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue