Merge pull request #1536 from shirou/feat/skip_nice_on_ci

[process][darwin]: skip process.Nice test if darwin on GitHub Action
pull/1531/head
shirou 1 year ago committed by GitHub
commit 21fe65fb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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