forked from cerc-io/plugeth
p2p: add channel buffers to avoid goroutine leaks in tests (#24929)
This commit is contained in:
@@ -265,7 +265,7 @@ func TestIteratorEmptyTree(t *testing.T) {
|
||||
resolver.add(tree1.ToTXT("n"))
|
||||
|
||||
// Start the iterator.
|
||||
node := make(chan *enode.Node)
|
||||
node := make(chan *enode.Node, 1)
|
||||
it, err := c.NewIterator(url)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user