diff --git a/benchmark/helpers_unix_test.go b/benchmark/helpers_unix_test.go index 33b1b74..a7200fd 100644 --- a/benchmark/helpers_unix_test.go +++ b/benchmark/helpers_unix_test.go @@ -4,6 +4,7 @@ package benchmark import ( + "os" "os/exec" "runtime" "syscall" @@ -14,7 +15,17 @@ import ( type LogLevel int +// isGitHubCI returns true if running in GitHub Actions CI environment +func isGitHubCI() bool { + return os.Getenv("GITHUB_ACTIONS") == "true" +} + func TestAdjustFilenoUlimit(t *testing.T) { + // Skip test in GitHub Actions + if isGitHubCI() { + t.Skip("Skipping file limit test in GitHub Actions CI") + } + b := &Benchmark{ Logger: logger.NewPlaneLogger(logger.LevelDebug, true), }