[process][windows] Fix Nice() test expecting Unix values

pull/989/head
Lomanic 4 years ago
parent 5641beec4c
commit 995610e109

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

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

Loading…
Cancel
Save