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 ff8ae5b + b09b301 commit f7e85f9Copy full SHA for f7e85f9
spec/datadog/profiling/scheduler_spec.rb
@@ -284,6 +284,10 @@
284
allow(exporter).to receive(:flush).and_return(flush)
285
end
286
287
+ after do
288
+ scheduler.stop(true) if instance_variable_defined?(:@stopped) && !@stopped
289
+ end
290
+
291
# This test validates the behavior of the @stop_requested flag.
292
#
293
# Specifically, the looping behavior we get from the core helpers will keep on trying to flush
@@ -296,7 +300,9 @@
296
300
scheduler.start
297
301
wait_for { scheduler.run_loop? }.to be true
298
302
299
- expect(scheduler.stop).to be true
303
+ @stopped = false
304
+ expect(scheduler.stop(false, 10)).to be true
305
+ @stopped = true
306
307
308
0 commit comments