From 0be6095f5e0996a5130fbbf4087280d7c60d6b1b Mon Sep 17 00:00:00 2001 From: anushkagupta200615-jpg Date: Tue, 14 Jul 2026 00:25:42 +0530 Subject: [PATCH] test: avoid raising hard limit for RLIMIT_NOFILE Signed-off-by: anushkagupta200615-jpg --- internal/plugin/installer/oci_installer_unix_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/plugin/installer/oci_installer_unix_test.go b/internal/plugin/installer/oci_installer_unix_test.go index d17b3cc8a..74614fe63 100644 --- a/internal/plugin/installer/oci_installer_unix_test.go +++ b/internal/plugin/installer/oci_installer_unix_test.go @@ -34,10 +34,10 @@ func TestExtractTarFileDescriptorLeak(t *testing.T) { // Lower the limit to 50 oldLimit := rLimit - rLimit.Cur = 50 if rLimit.Max < 50 { - rLimit.Max = 50 + t.Skipf("Skipping test because Max limit (%d) is too low", rLimit.Max) } + rLimit.Cur = 50 err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) if err != nil {