Skip to content

Commit

Permalink
Test integration
Browse files Browse the repository at this point in the history
Signed-off-by: clyang82 <[email protected]>
  • Loading branch information
clyang82 committed Dec 19, 2024
1 parent e48721d commit 2942a03
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/integration/agent/status/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ var _ = BeforeSuite(func() {
ctx, cancel = context.WithCancel(context.Background())

testenv = &envtest.Environment{
CRDDirectoryPaths: []string{
filepath.Join("..", "..", "..", "manifest", "crd"),
CRDInstallOptions: envtest.CRDInstallOptions{
Paths: []string{
filepath.Join("..", "..", "..", "manifest", "crd"),
},
MaxTime: 1 * time.Minute,
},
ErrorIfCRDPathMissing: true,
}

cfg, err := testenv.Start()
Expect(err).NotTo(HaveOccurred())
Expect(cfg).NotTo(BeNil())
Expand Down

0 comments on commit 2942a03

Please sign in to comment.