From 71646e52a45f8d67e731882d20c279352d384904 Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Fri, 11 Aug 2023 14:25:01 -0400 Subject: [PATCH] fixup! chore: don't install burrito in test --- lib/next_ls/lsp_supervisor.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/next_ls/lsp_supervisor.ex b/lib/next_ls/lsp_supervisor.ex index 43b1b1f0..d15b64a2 100644 --- a/lib/next_ls/lsp_supervisor.ex +++ b/lib/next_ls/lsp_supervisor.ex @@ -33,7 +33,9 @@ defmodule NextLS.LSPSupervisor do if @env == :test do :ignore else - argv = if @env == :prod, do: Burrito.Util.Args.get_arguments(), else: System.argv() + {m, f, a} = if @env == :prod, do: {Burrito.Util.Args, :get_arguments, []}, else: {System, :argv, []} + + argv = apply(m, f, a) {opts, _, invalid} = OptionParser.parse(argv, strict: [stdio: :boolean, port: :integer])