 
   test "translates Supervisor reports abnormal shutdown on debug" do
     assert capture_log(:debug, fn ->
-      {:ok, pid} = Supervisor.start_link([worker(__MODULE__, [],
-          [function: :abnormal, restart: :permanent, shutdown: 5000])],
-        [strategy: :one_for_one])
+      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


  test "translates application stop" do
    assert capture_log(fn ->
    :ok = Application.start(:eex)
      Application.stop(:eex)
    end) =~ """
    Application eex exited: :stopped

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