From 3d8cb4fa898f9dca3f12be83ca593718b43714fa Mon Sep 17 00:00:00 2001 From: Peter Hunt Date: Wed, 17 Jul 2024 13:23:53 -0400 Subject: [PATCH] e2e_node: loosen proc mount test the exact number of lines/ro lines is not important, just that there are more than 0 ro lines and more than 1 line total. this helps accomodate different architectures that implement different kernel APIs Signed-off-by: Peter Hunt --- test/e2e_node/proc_mount_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/proc_mount_test.go b/test/e2e_node/proc_mount_test.go index dede318adbb..0eb043eb848 100644 --- a/test/e2e_node/proc_mount_test.go +++ b/test/e2e_node/proc_mount_test.go @@ -42,7 +42,7 @@ var _ = SIGDescribe("DefaultProcMount [LinuxOnly]", framework.WithNodeConformanc f.NamespacePodSecurityLevel = admissionapi.LevelBaseline ginkgo.It("will mask proc mounts by default", func(ctx context.Context) { - testProcMount(ctx, f, v1.DefaultProcMount, gomega.BeNumerically(">=", 10), gomega.BeNumerically(">=", 7)) + testProcMount(ctx, f, v1.DefaultProcMount, gomega.BeNumerically(">", 1), gomega.BeNumerically(">", 0)) }) })