mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #2275 from edsantiago/fix_blocking_fifo
e2e tests: sigproxy: fix rare hang condition
This commit is contained in:
@ -55,7 +55,7 @@ var _ = Describe("Podman run with --sig-proxy", func() {
|
||||
|
||||
_, pid := podmanTest.PodmanPID([]string{"run", "-it", "-v", fmt.Sprintf("%s:/h:Z", udsDir), fedoraMinimal, "bash", "-c", sigCatch})
|
||||
|
||||
uds, _ := os.OpenFile(udsPath, os.O_RDONLY, 0600)
|
||||
uds, _ := os.OpenFile(udsPath, os.O_RDONLY|syscall.O_NONBLOCK, 0600)
|
||||
defer uds.Close()
|
||||
|
||||
// Wait for the script in the container to alert us that it is READY
|
||||
@ -73,7 +73,7 @@ var _ = Describe("Podman run with --sig-proxy", func() {
|
||||
}
|
||||
time.Sleep(1 * time.Second)
|
||||
if counter == 15 {
|
||||
os.Exit(1)
|
||||
Fail("Timed out waiting for READY from container")
|
||||
}
|
||||
counter++
|
||||
}
|
||||
@ -99,7 +99,7 @@ var _ = Describe("Podman run with --sig-proxy", func() {
|
||||
}
|
||||
time.Sleep(1 * time.Second)
|
||||
if counter == 15 {
|
||||
os.Exit(1)
|
||||
Fail("timed out waiting for FOO from container")
|
||||
}
|
||||
counter++
|
||||
}
|
||||
|
Reference in New Issue
Block a user