diff --git a/process/process_test.go b/process/process_test.go index 28518b8..97827c0 100644 --- a/process/process_test.go +++ b/process/process_test.go @@ -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) } } diff --git a/v3/process/process_test.go b/v3/process/process_test.go index a894164..47045af 100644 --- a/v3/process/process_test.go +++ b/v3/process/process_test.go @@ -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) } }