       exit(:crash_proc_lib_spawn)
     end)
 
+    Process.sleep(@process_monitor_delay)
+
     [{_, reason, message, stacktrace}] =
       until(fn ->
         assert [{_, _, _, _}] = FakeTransaction.errors(fake_transaction)


  test "Crashing GenServer with exit", %{fake_transaction: fake_transaction} do
    CrashingGenServer.start(:exit)

    [{_, reason, message, stacktrace}] =
      until(fn ->

      end)
      |> Task.await(1)
    end)

    Process.sleep(@process_monitor_delay)

    [{_, reason, message, stacktrace}] =
      until(fn ->
