1
0
mirror of https://github.com/fumiama/water.git synced 2026-07-01 17:30:27 +08:00

return error instead of panic()

This commit is contained in:
Song Gao
2015-11-19 19:24:13 +00:00
parent d8e4f41ac8
commit acc2c8967a
2 changed files with 5 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ func TestBroadcast(t *testing.T) {
ifce, err := NewTAP("test")
if err != nil {
t.Fatal(err)
t.Fatalf("creating TAP error: %v\n", err)
}
setupIfce(t, net.IPNet{IP: self, Mask: mask}, ifce.Name())