Fixed wrong format of debug msg in unit test

pull/3948/head
Pierre Souchay 7 years ago
parent ce3f47a75d
commit d0e45f22df

@ -2801,7 +2801,7 @@ func TestDNS_TCP_and_UDP_Truncate(t *testing.T) {
for _, question := range questions { for _, question := range questions {
for _, protocol := range protocols { for _, protocol := range protocols {
for _, compress := range []bool{true, false} { for _, compress := range []bool{true, false} {
t.Run(fmt.Sprintf("lookup %s %s (qType:=%d) compressed=%b", question, protocol, qType, compress), func(t *testing.T) { t.Run(fmt.Sprintf("lookup %s %s (qType:=%d) compressed=%v", question, protocol, qType, compress), func(t *testing.T) {
m := new(dns.Msg) m := new(dns.Msg)
m.SetQuestion(question, dns.TypeANY) m.SetQuestion(question, dns.TypeANY)
if protocol == "udp" { if protocol == "udp" {

Loading…
Cancel
Save