agent: vet fixes

This commit is contained in:
Ryan Uber 2015-07-14 11:42:51 -07:00
parent 6d27334ee1
commit f424f94d45
2 changed files with 4 additions and 4 deletions

View File

@ -150,7 +150,7 @@ func TestAgent_CheckAdvertiseAddrsSettings(t *testing.T) {
}
serfLanPort := agent.consulConfig().SerfLANConfig.MemberlistConfig.AdvertisePort
if serfLanPort != 1233 {
t.Fatalf("SerfLan is not properly set to '1233': %s", serfLanPort)
t.Fatalf("SerfLan is not properly set to '1233': %d", serfLanPort)
}
serfWanAddr := agent.consulConfig().SerfWANConfig.MemberlistConfig.AdvertiseAddr
if serfWanAddr != "127.0.0.43" {
@ -158,7 +158,7 @@ func TestAgent_CheckAdvertiseAddrsSettings(t *testing.T) {
}
serfWanPort := agent.consulConfig().SerfWANConfig.MemberlistConfig.AdvertisePort
if serfWanPort != 1234 {
t.Fatalf("SerfWan is not properly set to '1234': %s", serfWanPort)
t.Fatalf("SerfWan is not properly set to '1234': %d", serfWanPort)
}
rpc := agent.consulConfig().RPCAdvertise
if rpc != c.AdvertiseAddrs.RPC {

View File

@ -185,7 +185,7 @@ func TestDNS_NodeLookup(t *testing.T) {
}
if len(in.Ns) != 1 {
t.Fatalf("Bad: %#v", in, len(in.Answer))
t.Fatalf("Bad: %#v %#v", in, len(in.Answer))
}
soaRec, ok := in.Ns[0].(*dns.SOA)
@ -1835,7 +1835,7 @@ func TestDNS_NonExistingLookup(t *testing.T) {
}
if len(in.Ns) != 1 {
t.Fatalf("Bad: %#v", in, len(in.Answer))
t.Fatalf("Bad: %#v %#v", in, len(in.Answer))
}
soaRec, ok := in.Ns[0].(*dns.SOA)