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