From ccc4b7b2cf93a06273f738350aa81e5ef1ec3212 Mon Sep 17 00:00:00 2001 From: tcpdumppy <847462026@qq.com> Date: Mon, 4 Nov 2024 23:36:42 +0800 Subject: [PATCH] Test: Fix incorrect output format (#3968) --- app/dns/dnscommon_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dns/dnscommon_test.go b/app/dns/dnscommon_test.go index 6530d1a0..d11f8632 100644 --- a/app/dns/dnscommon_test.go +++ b/app/dns/dnscommon_test.go @@ -88,7 +88,7 @@ func Test_parseResponse(t *testing.T) { got.Expire = time.Time{} } if cmp.Diff(got, tt.want) != "" { - t.Errorf(cmp.Diff(got, tt.want)) + t.Error(cmp.Diff(got, tt.want)) // t.Errorf("handleResponse() = %#v, want %#v", got, tt.want) } })