fix publisher test.

This commit is contained in:
fiatjaf
2025-11-30 22:11:59 -03:00
parent fb3b14c69c
commit e00f6dbc26

View File

@@ -20,7 +20,7 @@ func TestRelayWrapper(t *testing.T) {
s.Init()
defer s.Close()
w := StorePublisher{Store: s}
w := StorePublisher{Store: s, MaxLimit: 500}
evt1 := nostr.Event{
Kind: 3,
@@ -40,7 +40,7 @@ func TestRelayWrapper(t *testing.T) {
for range 200 {
go w.Publish(ctx, evt1)
go w.Publish(ctx, evt1)
go w.Publish(ctx, evt2)
}
time.Sleep(time.Millisecond * 200)