Skip to content

Commit

Permalink
make sure process is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Aug 29, 2023
1 parent 6ef5680 commit fe3d1e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/elixir_ls_debugger/test/debugger_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ defmodule ElixirLS.Debugger.ServerTest do
:int.auto_attach(false)
:int.no_break()
:int.clear()

if Process.alive?(server) do
Process.monitor(server)
Process.exit(server, :normal)

receive do
{:DOWN, _, _, ^server, _} ->
:ok
end
end
end)

{:ok, %{server: server}}
Expand Down

0 comments on commit fe3d1e0

Please sign in to comment.