Skip to content

Commit b8e3516

Browse files
committed
Increase envtest start/stop timeout
1 parent 85de7ce commit b8e3516

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

components/ws-manager-api/go/crd/v1/webhook_suite_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ var _ = BeforeSuite(func() {
4848

4949
By("bootstrapping test environment")
5050
testEnv = &envtest.Environment{
51-
CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")},
52-
ErrorIfCRDPathMissing: false,
51+
ControlPlaneStartTimeout: 1 * time.Minute,
52+
ControlPlaneStopTimeout: 1 * time.Minute,
53+
CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")},
54+
ErrorIfCRDPathMissing: false,
5355
WebhookInstallOptions: envtest.WebhookInstallOptions{
5456
Paths: []string{filepath.Join("..", "..", "config", "webhook")},
5557
},

components/ws-manager-mk2/controllers/suite_test.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"context"
99
"path/filepath"
1010
"testing"
11+
"time"
1112

1213
. "github.com/onsi/ginkgo/v2"
1314
. "github.com/onsi/gomega"
@@ -47,8 +48,10 @@ var _ = BeforeSuite(func() {
4748

4849
By("bootstrapping test environment")
4950
testEnv = &envtest.Environment{
50-
CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},
51-
ErrorIfCRDPathMissing: true,
51+
ControlPlaneStartTimeout: 1 * time.Minute,
52+
ControlPlaneStopTimeout: 1 * time.Minute,
53+
CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},
54+
ErrorIfCRDPathMissing: true,
5255
}
5356

5457
cfg, err := testEnv.Start()

0 commit comments

Comments
 (0)