fix event comparison in EventSerialization test

This commit is contained in:
shota3506 2023-05-07 14:59:21 +09:00 committed by fiatjaf_
parent c0a42ff2ff
commit 96f3d4c9a0

View File

@ -68,7 +68,7 @@ func TestEventSerialization(t *testing.T) {
if evt.ID != re.ID || evt.PubKey != re.PubKey || evt.Content != re.Content ||
evt.CreatedAt != re.CreatedAt || evt.Sig != re.Sig ||
len(evt.Tags) != len(evt.Tags) {
len(evt.Tags) != len(re.Tags) {
t.Error("reparsed event differs from original")
}
@ -115,7 +115,7 @@ func TestEventSerializationWithExtraFields(t *testing.T) {
if evt.ID != re.ID || evt.PubKey != re.PubKey || evt.Content != re.Content ||
evt.CreatedAt != re.CreatedAt || evt.Sig != re.Sig ||
len(evt.Tags) != len(evt.Tags) {
len(evt.Tags) != len(re.Tags) {
t.Error("reparsed event differs from original")
}