Skip to content

Commit

Permalink
f tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glennsarti committed Nov 12, 2017
1 parent 79d00d3 commit 0953813
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/spec/integration/puppet-languageserver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ def get_response(reader)
after(:each) do
@client.close unless @client.nil?

unless @server_thr.nil?
begin
Process.kill("KILL", @server_thr[:pid])
Process.wait(@server_thr[:pid])
rescue
# The server process may not exist and checking in a cross platform way in ruby is difficult
# Instead just swallow any errors
end
end

Expand Down

0 comments on commit 0953813

Please sign in to comment.