Skip to content

Commit e25db48

Browse files
committed
test: disable parallelism in Longhorn tests
Parallel test don't work inside testify suites. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent 54b93af commit e25db48

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

internal/integration/k8s/longhorn.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"context"
1212
_ "embed"
1313
"strings"
14-
"testing"
1514
"text/template"
1615
"time"
1716

@@ -51,8 +50,6 @@ func (suite *LongHornSuite) SuiteName() string {
5150

5251
// TestDeploy tests deploying Longhorn and running a simple test.
5352
func (suite *LongHornSuite) TestDeploy() {
54-
suite.T().Parallel()
55-
5653
if suite.Cluster == nil {
5754
suite.T().Skip("without full cluster state reaching out to the node IP is not reliable")
5855
}
@@ -105,21 +102,15 @@ func (suite *LongHornSuite) TestDeploy() {
105102
suite.PatchK8sObject(ctx, "longhorn-system", "longhorn.io", "Node", "v1beta2", k8sNode.Name, longhornNodeDiskPatch)
106103
}
107104

108-
suite.T().Run("fio", func(t *testing.T) {
109-
t.Parallel()
110-
105+
suite.Run("fio", func() {
111106
suite.Require().NoError(suite.RunFIOTest(ctx, "longhorn", "10G"))
112107
})
113108

114-
suite.T().Run("fio-v2", func(t *testing.T) {
115-
t.Parallel()
116-
109+
suite.Run("fio-v2", func() {
117110
suite.Require().NoError(suite.RunFIOTest(ctx, "longhorn-v2", "10G"))
118111
})
119112

120-
suite.T().Run("iscsi", func(t *testing.T) {
121-
t.Parallel()
122-
113+
suite.Run("iscsi", func() {
123114
suite.testDeployISCSI(ctx)
124115
})
125116
}

0 commit comments

Comments
 (0)