mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rpc: make subscription test faster
reduces time for TestClientSubscriptionChannelClose from 25 sec to < 1 sec.
This commit is contained in:
parent
a3be38127c
commit
b051500809
1 changed files with 1 additions and 1 deletions
|
|
@ -595,7 +595,7 @@ func TestClientSubscriptionChannelClose(t *testing.T) {
|
|||
|
||||
for i := 0; i < 100; i++ {
|
||||
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 {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue