Skip to content

Commit

Permalink
Merge branch 'master' into renovate/configure
Browse files Browse the repository at this point in the history
  • Loading branch information
gilacost committed Mar 25, 2023
2 parents 2e94f3c + fa0a498 commit 5d597e6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/lettuce_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule LettuceTest do
use ExUnit.Case
use ExUnit.Case, async: true

doctest Lettuce.Config

Expand All @@ -8,7 +8,7 @@ defmodule LettuceTest do
@fixture_projects [:recompile, :silent_io, :not_recompiles, :compiler_opts]
|> Enum.map(&to_string(&1))

setup_all do
setup do
files_mtime =
@fixture_projects
|> Enum.map(fn project ->
Expand All @@ -22,6 +22,8 @@ defmodule LettuceTest do
end)
|> Enum.into(%{})

Process.sleep(1100)

on_exit(fn ->
@fixture_projects
|> Enum.each(fn project ->
Expand Down Expand Up @@ -58,7 +60,7 @@ defmodule LettuceTest do
end) =~ "recompiling..."
end

test "nothing is logged if sil" do
test "nothing is logged if nil" do
assert_raise OptionParser.ParseError, fn ->
Mix.Project.in_project(:compiler_opts, "test/fixtures/compiler_opts", fn _module ->
Mix.Tasks.Loadconfig.run(["config/config.exs"])
Expand Down Expand Up @@ -101,7 +103,8 @@ defmodule LettuceTest do
|> Mix.Project.in_project(project_path, fn _module ->
Mix.Tasks.Loadconfig.run(["config/config.exs"])

Process.sleep(1500)
Process.sleep(1100)

File.touch!("lib/module_file.ex")

refute Map.get(initial_times, "#{project_path}/#{beam_file}") ==
Expand Down

0 comments on commit 5d597e6

Please sign in to comment.