From 83427f964f30fc677ac1395a0587063bc8a41888 Mon Sep 17 00:00:00 2001 From: shirou Date: Sat, 7 Oct 2023 13:27:39 +0000 Subject: [PATCH] [process][darwin]: skip process.Nice test if darwin on GitHub Action fix: https://github.com/shirou/gopsutil/issues/1532 --- process/process_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/process/process_test.go b/process/process_test.go index 51f7d9cf6..877992b25 100644 --- a/process/process_test.go +++ b/process/process_test.go @@ -227,6 +227,11 @@ func Test_Process_NumCtx(t *testing.T) { func Test_Process_Nice(t *testing.T) { p := testGetProcess() + // https://github.com/shirou/gopsutil/issues/1532 + if os.Getenv("CI") == "true" && runtime.GOOS == "darwin" { + t.Skip("Skip CI") + } + n, err := p.Nice() skipIfNotImplementedErr(t, err) if err != nil {