|
|
@ -3,6 +3,7 @@ package e2e_test |
|
|
|
import ( |
|
|
|
"context" |
|
|
|
"os" |
|
|
|
"sort" |
|
|
|
"sync" |
|
|
|
"testing" |
|
|
|
|
|
|
@ -46,6 +47,10 @@ func testNode(t *testing.T, testFunc func(context.Context, *testing.T, e2e.Node) |
|
|
|
node := testnet.LookupNode(name) |
|
|
|
require.NotNil(t, node, "node %q not found in testnet %q", name, testnet.Name) |
|
|
|
nodes = []*e2e.Node{node} |
|
|
|
} else { |
|
|
|
sort.Slice(nodes, func(i, j int) bool { |
|
|
|
return nodes[i].Name < nodes[j].Name |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
for _, node := range nodes { |
|
|
@ -56,8 +61,6 @@ func testNode(t *testing.T, testFunc func(context.Context, *testing.T, e2e.Node) |
|
|
|
} |
|
|
|
|
|
|
|
t.Run(node.Name, func(t *testing.T) { |
|
|
|
t.Parallel() |
|
|
|
|
|
|
|
ctx, cancel := context.WithCancel(context.Background()) |
|
|
|
defer cancel() |
|
|
|
|
|
|
|