Skip to content

Commit

Permalink
[Fix] Increase timeout for a health endpoint test
Browse files Browse the repository at this point in the history
A lower stopTimeout closes the channel before
the process starts causing race conditions while
running tests.

Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
  • Loading branch information
varshaprasad96 committed Oct 23, 2023
1 parent e136e50 commit bcdf9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/testing/process/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ var _ = Describe("Start method", func() {
echo 'i started' >&2
`,
}
processState.StartTimeout = 5 * time.Second
processState.StartTimeout = 10 * time.Second

Expect(processState.Start(stdout, stderr)).To(Succeed())
Eventually(processState.Exited).Should(BeTrue())
Expand Down

0 comments on commit bcdf9f4

Please sign in to comment.