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
Using Sidekiq::Testing.inline! can trigger many workers that are not necessary for a specific spec, like model callback using FactoryBot.create, ...
The nightmare scenario is this: user puts Sidekiq jobs into ActiveRecord callbacks, then uses something like factory_girl and creates hundreds of records and thus sidekiq jobs on every test. There is no feedback that tons of Sidekiq jobs are being executed besides the tests being slow. Now the user's unit tests take minutes to complete. sidekiq/sidekiq#3495
The text was updated successfully, but these errors were encountered:
Detect offense on
Sidekiq::Testing.inline!
in spec and suggest to use spy/stub to manually perform specific worker that need to be run.Using
Sidekiq::Testing.inline!
can trigger many workers that are not necessary for a specific spec, like model callback usingFactoryBot.create
, ...The text was updated successfully, but these errors were encountered: