Commit 9d67a3d1 authored by rpereira2's avatar rpereira2

Change docs to recommend perform_enqueued_jobs

- Instead of Sidekiq::Testing.inline!, recommend the use of
perform_enqueued_jobs. This is due to the changes in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20768
parent 08ed6b17
...@@ -327,7 +327,7 @@ However, if a spec makes direct Redis calls, it should mark itself with the ...@@ -327,7 +327,7 @@ However, if a spec makes direct Redis calls, it should mark itself with the
`:clean_gitlab_redis_queues` traits as appropriate. `:clean_gitlab_redis_queues` traits as appropriate.
Sidekiq jobs are typically not run in specs, but this behaviour can be altered Sidekiq jobs are typically not run in specs, but this behaviour can be altered
in each spec through the use of `Sidekiq::Testing.inline!` blocks. Any spec that in each spec through the use of `perform_enqueued_jobs` blocks. Any spec that
causes Sidekiq jobs to be pushed to Redis should use the `:sidekiq` trait, to causes Sidekiq jobs to be pushed to Redis should use the `:sidekiq` trait, to
ensure that they are removed once the spec completes. ensure that they are removed once the spec completes.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment