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

pull/989/head
Lomanic 5 years ago
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…
Cancel
Save