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

fix: https://github.com/shirou/gopsutil/issues/1532
pull/1536/head
shirou 1 year ago
parent 48960df563
commit 83427f964f

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

Loading…
Cancel
Save