Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/logger/test/logger/translator_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ defmodule Logger.TranslatorTest do
trap = Process.flag(:trap_exit, true)
Supervisor.start_link([worker(__MODULE__, [], [function: :error])],
[strategy: :one_for_one])
receive do: ({:EXIT, _, {:shutdown, {:failed_to_start_child, _, _}}} -> :ok)
Process.flag(:trap_exit, trap)
end) =~ ~r"""
\[error\] Child Logger.TranslatorTest of Supervisor #PID<\d+\.\d+\.\d+> \(Supervisor\.Default\) failed to start
Expand All @@ -364,6 +365,7 @@ defmodule Logger.TranslatorTest do
trap = Process.flag(:trap_exit, true)
Supervisor.start_link([worker(__MODULE__, [], [function: :undef])],
[strategy: :one_for_one])
receive do: ({:EXIT, _, {:shutdown, {:failed_to_start_child, _, _}}} -> :ok)
Process.flag(:trap_exit, trap)
end) =~ ~r"""
\[error\] Child Logger.TranslatorTest of Supervisor #PID<\d+\.\d+\.\d+> \(Supervisor\.Default\) failed to start
Expand Down