From 2942a0325d5202bbb0b7a3d9618455fee83bf4f5 Mon Sep 17 00:00:00 2001 From: clyang82 Date: Thu, 19 Dec 2024 17:00:19 +0800 Subject: [PATCH] Test integration Signed-off-by: clyang82 --- test/integration/agent/status/suite_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/integration/agent/status/suite_test.go b/test/integration/agent/status/suite_test.go index b98f76474..d10ee49a6 100644 --- a/test/integration/agent/status/suite_test.go +++ b/test/integration/agent/status/suite_test.go @@ -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())