Last active
July 25, 2017 03:25
-
-
Save thephw/49f46c8b2d06b3230de1a5f094c29250 to your computer and use it in GitHub Desktop.
Horseshit webkit_server fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.after(:suite) do | |
webkit_server_pid = %x[ps].split("\n").select{|str| str.match /webkit_server/ }.first.to_i | |
if webkit_server_pid != 0 | |
puts "webkit_server did not quit... killing webkit_server PID ##{webkit_server_pid}" | |
`kill -9 #{webkit_server_pid}` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment