mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
Add test code for windows.
This commit is contained in:
parent
b090a0ff67
commit
dd56f4a2c6
4 changed files with 36 additions and 8 deletions
|
@ -2,7 +2,6 @@ package water
|
|||
|
||||
import (
|
||||
"net"
|
||||
"os/exec"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
|
@ -24,12 +23,6 @@ func startRead(ch chan<- []byte, ifce *Interface) {
|
|||
}()
|
||||
}
|
||||
|
||||
func startBroadcast(t *testing.T, dst net.IP) {
|
||||
if err := exec.Command("ping", "-b", "-c", "2", dst.String()).Start(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestBroadcast(t *testing.T) {
|
||||
var (
|
||||
self = net.IPv4(10, 0, 42, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue