Skip to content

Conversation

@alexfilatov
Copy link

Just a small helped information to understand what was captured and what was expected in the assertion.

So error message will look like the following:

  1) test demo_function/2 (MyApp.ManagerTest)
     test/my_app/manager_test.exs:110
       Expected call but did not receive it. Calls which were captured:

     0. Elixir.MyApp.Sender.send_later(MyApp.MyWorker,["9030b86d-c502-4353-8d4a-3bf414eef5d8", "name-7"]) (returned {:ok, :enqueued}).


       Expected call: Elixir.MyApp.Sender.send_later(MyApp.MyWorker,["dc3230b4-f3a1-46fd-b109-e8124ab779f7", "name-7"])

     code: assert_called(
     stacktrace:
       test/my_app/manager_test.exs:123: (test)

@alexfilatov alexfilatov marked this pull request as ready for review February 20, 2024 15:00
@alexfilatov
Copy link
Author

@jjh42 please let me know if that makes sense :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant