Skip to content

Commit a19a0a1

Browse files
committed
Hopefully fix sporadic test failures
test_booting_a_foreground_server was sometimes failing on the CI, I think because the pidfile can be created before the socket file exists, and therefore before the server has fully booted.
1 parent 792d377 commit a19a0a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/test/acceptance_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def exec_name
519519
app.run "spring server &"
520520

521521
Timeout.timeout(1) do
522-
sleep 0.1 until spring_env.server_running?
522+
sleep 0.1 until spring_env.server_running? && spring_env.socket_path.exist?
523523
end
524524

525525
assert_success app.spring_test_command

0 commit comments

Comments
 (0)