Commit 84e50c5
authored
fix(specs): stop sidekiq-scheduler after each test (#2897)
Otherwise this may happen:
```
1) Sentry::Sidekiq::Cron::Job sidekiq-cron adds job to sidekiq within transaction
Failure/Error: expect(::Sidekiq::Queue.new.size).to eq(2)
expected: 2
got: 5
(compared using ==)
# ./spec/sentry/sidekiq/cron/job_spec.rb:124:in `block in <main>'
Finished in 6.23 seconds (files took 4.01 seconds to load)
75 examples, 1 failure, 2 pending
Failed examples:
rspec ./spec/sentry/sidekiq/cron/job_spec.rb:118 # Sentry::Sidekiq::Cron::Job sidekiq-cron adds job to sidekiq within transaction
```1 parent c081d11 commit 84e50c5
File tree
1 file changed
+6
-2
lines changed- sentry-sidekiq/spec/sentry/sidekiq-scheduler
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
0 commit comments