relaypool: add a unique events subscription smoke test

was trying to reproduce the issue described in
https://github.com/nbd-wtf/go-nostr/issues/23

no success in reproducing that specific problem, but i believe the test
can still be useful to help in avoiding regression bugs in the future.
This commit is contained in:
alex
2022-12-26 19:54:37 +01:00
committed by fiatjaf
parent 435579dc75
commit 28663f21f0
3 changed files with 172 additions and 0 deletions

View File

@@ -85,3 +85,10 @@ func TestEventSerialization(t *testing.T) {
}
}
}
func mustSignEvent(t *testing.T, privkey string, event *Event) {
t.Helper()
if err := event.Sign(privkey); err != nil {
t.Fatalf("event.Sign: %v", err)
}
}