Browse Source

Maintenance: Stabilize background worker test.

Martin Gruner 2 years ago
parent
commit
fc2f1a6c15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec/lib/background_services_spec.rb

+ 1 - 1
spec/lib/background_services_spec.rb

@@ -148,7 +148,7 @@ RSpec.describe BackgroundServices do
 
       it 'runs Service#run' do
         instance.send(:start_as_thread, SampleService)
-        sleep 0.1
+        sleep 0.1 until log.any?
         expect(log).to be_present
       end
     end