[process][darwin]: skip process.Nice test if darwin on GitHub Action

fix: https://github.com/shirou/gopsutil/issues/1532
This commit is contained in:
shirou 2023-10-07 13:27:39 +00:00
parent 48960df563
commit 83427f964f
1 changed files with 5 additions and 0 deletions

View File

@ -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 {