We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435d3c5 commit 7dd8c5bCopy full SHA for 7dd8c5b
test/support/webpacker_helpers.rb
@@ -96,10 +96,10 @@ def with_dev_server
96
puts check_cmd
97
status = `#{check_cmd}`
98
puts status
99
- still_alive = status.include?(webpack_dev_server.to_s)
100
- puts "Still alive? #{still_alive} (#{webpack_dev_server.to_s})"
101
- if still_alive
102
- remaining_pid = status.match(/\n[a-z]+\s+(\d+)/)[1]
+ remaining_pid_match = status.match(/\n[a-z]+\s+(\d+)/)
+ if remaining_pid_match
+ remaining_pid = remaining_pid_match[1]
+ puts "Remaining #{remaining_pid}"
103
kill_cmd = "kill -9 #{remaining_pid}"
104
puts kill_cmd
105
puts `#{kill_cmd}`
0 commit comments