     {:ok, handler_name: mod_name, port: server_port}
   end
 
-  setup(ctx) do
+  setup(%{port: port, test: client_name}) do
     {:ok, agent} = Agent.start_link(fn -> nil end, name: :server_args)
 
     on_exit fn ->

      end
    end

    {:ok, client} = Client.start_link("localhost", ctx.port, name: TestClientName)

    {:ok, client: client}
  end

  thrift_test "it can return a simple boolean value", ctx do

    assert "username" == Agent.get(:server_args, &(&1))
  end

  thrift_test "client can be found by name", %{client: client, client_name: name} do
    assert client == Process.whereis(name)
  end

  thrift_test "client methods can be called by name instead of pid", %{client_name: name} do
    assert {:ok, true} == Client.ping(name)
  end
end
