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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user