Don't call StdoutPipe() after calling Run()
If you are lucky, the go routine won't start before you run the
StdoutPipe but if that doesn't happen you'd get an error:
"exec: StdoutPipe after process started"
because StdoutPipe should be called before Run
@@ -320,9 +320,9 @@ var _ = Describe("Apps", func() {
p.Process.Kill()
}
}()
- go p.Run()
reader, err := p.StdoutPipe()
Expect(err).NotTo(HaveOccurred())
+ go p.Run()
By("read all the logs")
scanner := bufio.NewScanner(reader)
