mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
[process][windows] Fix Nice() test expecting Unix values
This commit is contained in:
parent
5641beec4c
commit
995610e109
@ -244,7 +244,7 @@ func Test_Process_Nice(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("getting nice error %v", err)
|
t.Errorf("getting nice error %v", err)
|
||||||
}
|
}
|
||||||
if n != 0 && n != 20 && n != 8 {
|
if runtime.GOOS != "windows" && n != 0 && n != 20 && n != 8 {
|
||||||
t.Errorf("invalid nice: %d", n)
|
t.Errorf("invalid nice: %d", n)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -247,7 +247,7 @@ func Test_Process_Nice(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("getting nice error %v", err)
|
t.Errorf("getting nice error %v", err)
|
||||||
}
|
}
|
||||||
if n != 0 && n != 20 && n != 8 {
|
if runtime.GOOS != "windows" && n != 0 && n != 20 && n != 8 {
|
||||||
t.Errorf("invalid nice: %d", n)
|
t.Errorf("invalid nice: %d", n)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user