From eac64e62e705c2764abb9acaf389888d49069caf Mon Sep 17 00:00:00 2001 From: abdhumal Date: Tue, 23 Jan 2024 19:35:04 +0530 Subject: [PATCH] update --- .github/workflows/functional-test.yml | 1 - functional-tests/appwrapper_reconciler_test.go | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index e094b6a..d613647 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -54,7 +54,6 @@ jobs: - name: Test run: | - pwd echo "KUBEBUILDER_ASSETS : $KUBEBUILDER_ASSETS" echo "USE_EXISTING_CLUSTER : $USE_EXISTING_CLUSTER" diff --git a/functional-tests/appwrapper_reconciler_test.go b/functional-tests/appwrapper_reconciler_test.go index c39bcd5..ca18db2 100644 --- a/functional-tests/appwrapper_reconciler_test.go +++ b/functional-tests/appwrapper_reconciler_test.go @@ -66,7 +66,8 @@ func startEnvTest(t *testing.T) *envtest.Environment { //specify testEnv configuration testEnv = &envtest.Environment{ CRDDirectoryPaths: []string{ - filepath.Join(build.Default.GOPATH, "pkg", "mod", "github.com", "project-codeflare", "multi-cluster-app-dispatcher@v1.38.1", "config", "crd", "bases"), + filepath.Join("..", "config", "crd", "bases"), + filepath.Join(build.Default.GOROOT, "pkg", "mod", "github.com", "project-codeflare", "multi-cluster-app-dispatcher@v1.38.1", "config", "crd", "bases"), filepath.Join(build.Default.GOPATH, "pkg", "mod", "github.com", "openshift", "api@v0.0.0-20230213134911-7ba313770556", "machine", "v1beta1"), }, ErrorIfCRDPathMissing: true,