Test: Fix incorrect output format (#3968)

This commit is contained in:
tcpdumppy 2024-11-04 23:36:42 +08:00 committed by GitHub
parent 9fbb6fbb3b
commit ccc4b7b2cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}
})