Files
havline-native/app-src/internal/nginx/pid_alive_test.go
T

14 lines
197 B
Go

package nginx
import (
"os"
"testing"
)
func TestIsPIDAliveCurrentProcess(t *testing.T) {
pid := os.Getpid()
if !isPIDAlive(pid) {
t.Fatalf("expected current pid %d to be alive", pid)
}
}