Add test code for windows.

This commit is contained in:
lucus 2016-12-26 04:59:00 +09:00
parent b090a0ff67
commit dd56f4a2c6
4 changed files with 36 additions and 8 deletions

View file

@ -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)