Skip to content

Commit

Permalink
Merge pull request #1077 from alvaroaleman/use-eventually
Browse files Browse the repository at this point in the history
🐛 Test can inspect stdout & stderr: Give some time to exit
  • Loading branch information
k8s-ci-robot committed Jul 28, 2020
2 parents e50c7b8 + accbce3 commit cea989b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit cea989b

Please sign in to comment.