1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-12 03:21:23 +00:00

🩹 Fix prefork test case

This commit is contained in:
Fenny 2020-07-15 15:15:23 +02:00
parent 7fc4b37dfb
commit a08de07fd5

View File

@ -90,9 +90,9 @@ func (app *App) prefork(addr string, tlsconfig ...*tls.Config) (err error) {
// just start the child process
// a cmd on all os is best
if runtime.GOOS == "windows" {
cmd = exec.Command("cmd", "/C", dummyChildCmd)
cmd = exec.Command("cmd", "/C", "go version")
} else {
cmd = exec.Command(dummyChildCmd)
cmd = exec.Command("date")
}
}
cmd.Stdout = os.Stdout