       end)
     end
 
-    test "adds an error to the created span", %{pid: pid} do
+    test "adds an error to the created span" do
       until(fn ->
         assert {:ok, [{%Span{}, %RuntimeError{message: "Exception"}, stack}]} =
                  Test.Span.get(:add_error)

defmodule Appsignal.Error.BackendTest do
  use ExUnit.Case, async: true
  import AppsignalTest.Utils
  import ExUnit.CaptureIO
  alias Appsignal.{Error.Backend, Span, Test, Tracer, WrappedNif}

  setup do

      end)
    end

    test "closes the created span" do
      until(fn ->
        assert {:ok, [{%Span{}}]} = Test.Tracer.get(:close_span)
      end)
