mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-06 19:29:13 +08:00
Merge pull request #1536 from shirou/feat/skip_nice_on_ci
[process][darwin]: skip process.Nice test if darwin on GitHub Action
This commit is contained in:
commit
21fe65fb5c
@ -227,6 +227,11 @@ func Test_Process_NumCtx(t *testing.T) {
|
|||||||
func Test_Process_Nice(t *testing.T) {
|
func Test_Process_Nice(t *testing.T) {
|
||||||
p := testGetProcess()
|
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()
|
n, err := p.Nice()
|
||||||
skipIfNotImplementedErr(t, err)
|
skipIfNotImplementedErr(t, err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user