-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:fake mode does not respect uniqueness settings #492
Comments
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. |
Is this by design then and not going to be fixed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: