Skip to content

Commit 2e9f4ba

Browse files
committed
Adds sleep to allow Tomcat to start fully
Adds a sleep command before running the curl command. This ensures Tomcat has fully started before the test attempts to access the application, preventing intermittent test failures. Relates to CAT-2396
1 parent 96762bc commit 2e9f4ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/acceptance/acceptance_1b_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class jsvc {
126126
end
127127

128128
it 'is serving a page on port 80', retry: 5, retry_wait: 10 do
129+
sleep 240 # allow tomcat to fully start
129130
run_shell('curl --retry 10 --retry-delay 15 localhost:80/war_one/hello.jsp') do |r|
130131
expect(r.stdout).to match(%r{Sample Application JSP Page})
131132
end

0 commit comments

Comments
 (0)