Browse Source

Comply the tests with golang TIP

creack 12 năm trước cách đây
mục cha
commit
d8fa52b7b5
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      .gitignore
  2. 1 1
      network_test.go

+ 1 - 0
.gitignore

@@ -6,3 +6,4 @@ a.out
 build_src
 command-line-arguments.test
 .flymake*
+docker.test

+ 1 - 1
network_test.go

@@ -102,7 +102,7 @@ func TestConversion(t *testing.T) {
 
 func TestIPAllocator(t *testing.T) {
 	gwIP, n, _ := net.ParseCIDR("127.0.0.1/29")
-	alloc, err := newIPAllocator(&net.IPNet{gwIP, n.Mask})
+	alloc, err := newIPAllocator(&net.IPNet{IP: gwIP, Mask: n.Mask})
 	if err != nil {
 		t.Fatal(err)
 	}