fix publisher test.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user