diff options
Diffstat (limited to 'test/support/dummy_client.ex')
-rw-r--r-- | test/support/dummy_client.ex | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/test/support/dummy_client.ex b/test/support/dummy_client.ex index 7c1556e..bc0d202 100644 --- a/test/support/dummy_client.ex +++ b/test/support/dummy_client.ex @@ -32,6 +32,11 @@ defmodule DummyClient do end def transaction_id(_), do: "txn_id" + + def stop(_, _, _) do + # don't need to do anything to stop it + :ok + end end defmodule MultiReq do @@ -47,14 +52,6 @@ defmodule DummyClient do } end - def destroy(%{pid: pid}) do - # make sure we weren't expecting any more requests - remaining = Agent.get(pid, & &1) - assert remaining == [] - - Process.exit(pid, :kill) - end - defimpl Polyjuice.Client.API do def call(%{pid: pid}, endpoint) do {request, result} = @@ -78,6 +75,15 @@ defmodule DummyClient do end def transaction_id(_), do: "txn_id" + + def stop(%{pid: pid}, _, _) do + # make sure we weren't expecting any more requests + remaining = Agent.get(pid, & &1) + assert remaining == [] + + Process.exit(pid, :kill) + :ok + end end end end |