1
0
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:
Lomanic 2020-11-08 02:14:30 +01:00
parent 5641beec4c
commit 995610e109
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ func Test_Process_Nice(t *testing.T) {
if err != nil {
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)
}
}

View File

@ -247,7 +247,7 @@ func Test_Process_Nice(t *testing.T) {
if err != nil {
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)
}
}