Skip to content

Commit

Permalink
fixup! feat(definition): remote function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jul 3, 2023
1 parent b8d9c1a commit aa858a4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/next_ls/symbol_table_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ defmodule NextLS.SymbolTableTest do

setup %{tmp_dir: dir} do
File.mkdir_p!(dir)
pid = start_supervised!({SymbolTable, [path: dir]})

# this fails with `{:error, incompatible_arguments}` on CI a lot, and I have no idea why
pid =
try do
start_supervised!({SymbolTable, [path: dir]})
rescue
_ ->
Process.sleep(250)
start_supervised!({SymbolTable, [path: dir]})
end

Process.link(pid)
[pid: pid, dir: dir]
Expand Down

0 comments on commit aa858a4

Please sign in to comment.