diff --git a/test/e2e/runner/test.go b/test/e2e/runner/test.go index ac24b0cd2..0748797aa 100644 --- a/test/e2e/runner/test.go +++ b/test/e2e/runner/test.go @@ -15,5 +15,5 @@ func Test(testnet *e2e.Testnet) error { return err } - return execVerbose("./build/tests", "-test.count", "1") + return execVerbose("./build/tests", "-test.count=1", "-test.v") } diff --git a/test/e2e/tests/app_test.go b/test/e2e/tests/app_test.go index 010614ab7..8e183610f 100644 --- a/test/e2e/tests/app_test.go +++ b/test/e2e/tests/app_test.go @@ -144,10 +144,10 @@ func TestApp_Tx(t *testing.T) { continue } t.Run(test.Name, func(t *testing.T) { - // testNode calls t.Parallel as well, so we should - // have a copy of the test := testCases[idx] + t.Parallel() testNode(t, func(ctx context.Context, t *testing.T, node e2e.Node) { + t.Parallel() client, err := node.Client() require.NoError(t, err) diff --git a/test/e2e/tests/e2e_test.go b/test/e2e/tests/e2e_test.go index 359c73e78..7b3d829d1 100644 --- a/test/e2e/tests/e2e_test.go +++ b/test/e2e/tests/e2e_test.go @@ -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()