rpc: make subscription test faster

reduces time for TestClientSubscriptionChannelClose
from 25 sec to < 1 sec.
This commit is contained in:
Marius van der Wijden 2023-11-03 10:21:29 +01:00
parent a3be38127c
commit b051500809

View file

@ -595,7 +595,7 @@ func TestClientSubscriptionChannelClose(t *testing.T) {
for i := 0; i < 100; i++ { for i := 0; i < 100; i++ {
ch := make(chan int, 100) ch := make(chan int, 100)
sub, err := client.Subscribe(context.Background(), "nftest", ch, "someSubscription", maxClientSubscriptionBuffer-1, 1) sub, err := client.Subscribe(context.Background(), "nftest", ch, "someSubscription", 100, 1)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }