Skip to content

Commit 8c11a7a

Browse files
committed
Fix warnings on Elixir v1.19-dev
1 parent d8146c3 commit 8c11a7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_helper.exs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Code.prepend_path("test/tmp/beam")
1717
# Compile module fixtures
1818
"test/fixtures/*.ex"
1919
|> Path.wildcard()
20-
|> Kernel.ParallelCompiler.compile_to_path("test/tmp/beam")
20+
|> Kernel.ParallelCompiler.compile_to_path("test/tmp/beam", return_diagnostics: true)
2121

2222
defmodule TestHelper do
2323
def elixirc(context, filename \\ "nofile", code) do
@@ -29,7 +29,10 @@ defmodule TestHelper do
2929

3030
ebin_dir = Path.join(dir, "ebin")
3131
File.mkdir_p!(ebin_dir)
32-
{:ok, modules, []} = Kernel.ParallelCompiler.compile_to_path([src_path], ebin_dir)
32+
33+
{:ok, modules, _} =
34+
Kernel.ParallelCompiler.compile_to_path([src_path], ebin_dir, return_diagnostics: true)
35+
3336
true = Code.prepend_path(ebin_dir)
3437

3538
ExUnit.Callbacks.on_exit(fn ->

0 commit comments

Comments
 (0)