Fix fmt modifiers for bool to be actually bool, not integer

This commit is contained in:
Radek Simko 2015-03-22 13:29:29 +00:00
parent d3135c1b2b
commit bbda2d6733
1 changed files with 2 additions and 2 deletions

View File

@ -409,11 +409,11 @@ func TestExpandPrivateIPAddesses(t *testing.T) {
} }
if *result[0].PrivateIPAddress != "192.168.0.1" || !*result[0].Primary { if *result[0].PrivateIPAddress != "192.168.0.1" || !*result[0].Primary {
t.Fatalf("expected ip to be 192.168.0.1 and Primary, but got %v, %b", *result[0].PrivateIPAddress, *result[0].Primary) t.Fatalf("expected ip to be 192.168.0.1 and Primary, but got %v, %t", *result[0].PrivateIPAddress, *result[0].Primary)
} }
if *result[1].PrivateIPAddress != "192.168.0.2" || *result[1].Primary { if *result[1].PrivateIPAddress != "192.168.0.2" || *result[1].Primary {
t.Fatalf("expected ip to be 192.168.0.2 and not Primary, but got %v, %b", *result[1].PrivateIPAddress, *result[1].Primary) t.Fatalf("expected ip to be 192.168.0.2 and not Primary, but got %v, %t", *result[1].PrivateIPAddress, *result[1].Primary)
} }
} }