We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1f6849 + 0d98b0e commit 5e9f3e1Copy full SHA for 5e9f3e1
1 file changed
spec/lib/appsignal/hooks/delayed_job_spec.rb
@@ -10,7 +10,13 @@ def self.plugins
10
@plugins ||= []
11
end
12
end)
13
- start_agent
+ # Install the hook directly rather than through `start_agent`. Hooks
14
+ # install once per process and are never reset, so relying on
15
+ # `start_agent` made "adds the plugin" pass only when this spec was the
16
+ # first to install the Delayed Job hook -- it saw an empty stubbed worker
17
+ # (and failed) once any other spec had installed it first. Mirrors the
18
+ # Shoryuken hook spec.
19
+ described_class.new.install
20
21
22
describe "#dependencies_present?" do
0 commit comments