Skip to content

Commit cea989b

Browse files
authored
Merge pull request #1077 from alvaroaleman/use-eventually
🐛 Test can inspect stdout & stderr: Give some time to exit
2 parents e50c7b8 + accbce3 commit cea989b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/internal/testing/integration/internal/process_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ var _ = Describe("Start method", func() {
216216
processState.StartTimeout = 1 * time.Second
217217

218218
Expect(processState.Start(stdout, stderr)).To(Succeed())
219-
Expect(processState.Session).Should(gexec.Exit())
219+
Eventually(processState.Session).Should(gexec.Exit())
220220

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

0 commit comments

Comments
 (0)