This commit is contained in:
Shreyas Goenka 2025-02-17 19:24:11 +01:00
parent 6148681ed1
commit 533e7be51b
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 0 additions and 18 deletions

View File

@ -1,18 +0,0 @@
package process
import (
"runtime"
"testing"
"github.com/stretchr/testify/assert"
)
func TestWaitForPidUnix(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skipping test on windows")
}
// Out of bounds pid. Should return an error.
err := waitForPid(1000000)
assert.EqualError(t, err, "process with pid 1000000 does not exist")
}