Closed ischepin closed 3 months ago
Thank you for the report. I understand you cannot share the whole repo, but we need a small reproduction to make sure we fix it. Can you try isolating the particular modules and files that can make this happen?
After some investigation I think this is caused by Mimic module. The setup is like this: CreateUser is a Oban.Worker module
Mimic.expect(CreateUser, :enqueue, fn _ -> {:error, :boom} end)
Oban.Testing.with_testing_mode(:manual, fn ->
assert :ok = CreateUser.process(%Oban.Job{args: %CreateUser{user_id: user_id}})
end)
Somehow if I run tests for A and B simultaneously it causes the error mentioned above. In any case, bumping mimic 1.7.4->1.9.0 fixes the issue
Perfect, that's indeed a Mimic issue then. I remember it being discussed previously. :)
I remember it being discussed previously. :)
The issue in question for reference: https://github.com/elixir-lang/elixir/issues/13662 https://github.com/edgurgel/mimic/issues/65
Elixir and Erlang/OTP versions
Operating system
Darwin xxx 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
Current behavior
RuntimeError running tests:
In the output there is also the test code itself, but I'd prefer not to share it since its from a private repo.
Expected behavior
Test is executed without errors