Skip to content

Commit a887330

Browse files
committed
Fix test after moving file directory
1 parent be0eb66 commit a887330

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/operator/controllers/external_traffic/external_traffic_network_policy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ func (s *ExternalNetworkPolicyReconcilerTestSuite) SetupSuite() {
5757
logrus.Info("Setting up test suite")
5858
s.TestEnv = &envtest.Environment{Scheme: clientgoscheme.Scheme}
5959
var err error
60-
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "..", "config", "crd")}
60+
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "config", "crd")}
6161
s.TestEnv.WebhookInstallOptions = envtest.WebhookInstallOptions{
62-
Paths: []string{filepath.Join("..", "..", "..", "config", "webhook")},
62+
Paths: []string{filepath.Join("..", "..", "config", "webhook")},
6363
LocalServingHost: "localhost",
6464
}
6565
utilruntime.Must(apiextensionsv1.AddToScheme(s.TestEnv.Scheme))

src/operator/controllers/external_traffic/external_traffic_network_policy_with_no_intents_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ func (s *ExternalNetworkPolicyReconcilerWithNoIntentsTestSuite) SetupSuite() {
5454
logrus.Info("Setting up test suite")
5555
s.TestEnv = &envtest.Environment{Scheme: clientgoscheme.Scheme}
5656
var err error
57-
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "..", "config", "crd")}
57+
s.TestEnv.CRDDirectoryPaths = []string{filepath.Join("..", "..", "config", "crd")}
5858
s.TestEnv.WebhookInstallOptions = envtest.WebhookInstallOptions{
59-
Paths: []string{filepath.Join("..", "..", "..", "config", "webhook")},
59+
Paths: []string{filepath.Join("..", "..", "config", "webhook")},
6060
LocalServingHost: "localhost",
6161
}
6262
utilruntime.Must(apiextensionsv1.AddToScheme(s.TestEnv.Scheme))

0 commit comments

Comments
 (0)