mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-18 05:42:20 +01:00
fix event comparison in EventSerialization test
This commit is contained in:
parent
c0a42ff2ff
commit
96f3d4c9a0
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user