Skip to content

Commit 12703ae

Browse files
authored
Merge pull request #999 from SUSE/ruby_hang
Simply stop the rails server rather than just killing it after 30
2 parents 4d6cc86 + d9cbdc5 commit 12703ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_ruby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ def test_rails_template(auto_container_per_test):
123123
pytest.xfail("timezone data are not in the container")
124124

125125
assert "Ruby on Rails" in auto_container_per_test.connection.check_output(
126-
"cd /hello/ && (timeout 30 rails server > /dev/null &) && curl -sf --retry 5 --retry-connrefused http://localhost:3000",
126+
"cd /hello/ && (timeout 60 rails server > /dev/null 2>&1 &) && curl -sf --retry 5 --retry-connrefused http://localhost:3000 && kill -TERM $(<tmp/pids/server.pid)",
127127
)

0 commit comments

Comments
 (0)