 
       @tag timeout: 500
       test "ok" do
-        start_supervised {Task, fn -> Process.flag(:trap_exit, true); Process.sleep(:infinity) end}
-      end
-    end
-
-    ExUnit.Server.modules_loaded()
-    assert capture_io(fn -> ExUnit.run end) =~ "supervisor shutdown timed out after 500ms"
+        start_supervised({
+          Task,
+          fn ->
+            Process.flag(:trap_exit, true)
+            Process.sleep(:infinity)
+          end
+        })
+      end
+    end
+
+    ExUnit.Server.modules_loaded()
+    assert capture_io(fn -> ExUnit.run() end) =~ "supervisor shutdown timed out after 500ms"
   end
 
   test "doesn't choke on on_exit errors" do

    end

    ExUnit.Server.modules_loaded()
    assert capture_io(fn -> ExUnit.run end) =~
           "** (MatchError) no match of right hand side value: :error"
  end

  test "doesn't choke when on_exit exits" do

      use ExUnit.Case

      setup do
        on_exit(fn ->
          IO.puts("on_exit setup run")
        end)

        :ok
      end

      setup_all do
        on_exit(fn ->
          IO.puts("on_exit setup_all run")
        end)

        :ok
      end

      test "ok" do
        on_exit(fn ->
          IO.puts("simple on_exit run")
        end)

        flunk("oops")
      end
    end

    no_formatters!()
    ExUnit.Server.modules_loaded()
    output = capture_io(fn -> ExUnit.run() end)

    expected = """
    simple on_exit run
    on_exit setup run
    on_exit setup_all run
    """

    assert output =~ expected
  end

  test "raises an error when setting an invalid callback in setup" do
