   test "translates Supervisor reports start error with raise" do
     assert capture_log(:info, fn ->
       trap = Process.flag(:trap_exit, true)
-      Supervisor.start_link([worker(__MODULE__, [], [function: :undef])],
-        [strategy: :one_for_one])
+      children = [worker(__MODULE__, [], function: :undef)]
+      Supervisor.start_link(children, strategy: :one_for_one)
       receive do: ({:EXIT, _, {:shutdown, {:failed_to_start_child, _, _}}} -> :ok)
       Process.flag(:trap_exit, trap)
     end) =~ ~r"""


  test "translates Supervisor reports abnormal shutdown" do
    assert capture_log(:info, fn ->
      {:ok, pid} = Supervisor.start_link([worker(__MODULE__, [], [function: :abnormal])],
        [strategy: :one_for_one])
      :ok = Supervisor.terminate_child(pid, __MODULE__)
    end) =~ ~r"""
    \[error\] Child Logger.TranslatorTest of Supervisor #PID<\d+\.\d+\.\d+> \(Supervisor\.Default\) shutdown abnormally


  test "translates Supervisor reports abnormal shutdown on debug" do
    assert capture_log(:debug, fn ->
      children = [worker(__MODULE__, [], function: :abnormal, restart: :permanent, shutdown: 5000)]
      {:ok, pid} = Supervisor.start_link(children, strategy: :one_for_one)
      :ok = Supervisor.terminate_child(pid, __MODULE__)
    end) =~ ~r"""
    \*\* \(exit\) :stop
