Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Test can inspect stdout & stderr: Give some time to exit
  • Loading branch information
alvaroaleman committed Jul 27, 2020
commit accbce34c7c0a807ad2beca5e7cf9672aa914a18
2 changes: 1 addition & 1 deletion pkg/internal/testing/integration/internal/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ var _ = Describe("Start method", func() {
processState.StartTimeout = 1 * time.Second

Expect(processState.Start(stdout, stderr)).To(Succeed())
Expect(processState.Session).Should(gexec.Exit())
Eventually(processState.Session).Should(gexec.Exit())

Expect(stdout.String()).To(Equal("that is stdout\n"))
Expect(stderr.String()).To(Equal("this is stderr\ni started\n"))
Expand Down