You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected result: A single instance of the job is returned by Exq.Mock.jobs().
Actual result: Three instances of the job get returned by Exq.Mock.jobs().
Additionally, the returned jobs have their uniqueness attributes set to nil while it might be expected those would carry at least some of the supplied values:
This is one of those things that is not supported by a fake adapter. I am surprised inline is working, only Redis adapter is supposed to work correctly.
Here is an example:
Expected result: A single instance of the job is returned by
Exq.Mock.jobs()
.Actual result: Three instances of the job get returned by
Exq.Mock.jobs()
.Additionally, the returned jobs have their uniqueness attributes set to
nil
while it might be expected those would carry at least some of the supplied values:Exq config:
In
config/config.exs
:In
config/test.exs
:In
test_helper.exs
:Changing the Mock config to
mode: :inline
correctly enqueues just a single instance of worker.The text was updated successfully, but these errors were encountered: