Browse code

Comply the tests with golang TIP

creack authored on 2013/03/22 02:31:02
Showing 2 changed files
... ...
@@ -6,3 +6,4 @@ a.out
6 6
 build_src
7 7
 command-line-arguments.test
8 8
 .flymake*
9
+docker.test
... ...
@@ -102,7 +102,7 @@ func TestConversion(t *testing.T) {
102 102
 
103 103
 func TestIPAllocator(t *testing.T) {
104 104
 	gwIP, n, _ := net.ParseCIDR("127.0.0.1/29")
105
-	alloc, err := newIPAllocator(&net.IPNet{gwIP, n.Mask})
105
+	alloc, err := newIPAllocator(&net.IPNet{IP: gwIP, Mask: n.Mask})
106 106
 	if err != nil {
107 107
 		t.Fatal(err)
108 108
 	}