From d1a85f17deb8dcb068fdd2abeba0e2452ceda51d Mon Sep 17 00:00:00 2001 From: st0012 Date: Wed, 10 Mar 2021 14:46:04 +0800 Subject: [PATCH] Wait background worker a bit longer for sending events --- sentry-ruby/spec/sentry/client/event_sending_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentry-ruby/spec/sentry/client/event_sending_spec.rb b/sentry-ruby/spec/sentry/client/event_sending_spec.rb index eacbf9c7e..a6b692f3d 100644 --- a/sentry-ruby/spec/sentry/client/event_sending_spec.rb +++ b/sentry-ruby/spec/sentry/client/event_sending_spec.rb @@ -256,7 +256,7 @@ it "swallows and logs Sentry::ExternalError (caused by transport's networking error)" do expect(subject.capture_event(event, scope)).to be_a(Sentry::Event) - sleep(0.1) + sleep(0.2) expect(string_io.string).to match(/Event sending failed: Failed to open TCP connection/) expect(string_io.string).to match(/Unreported Event: Test message/) @@ -266,7 +266,7 @@ configuration.before_send = -> (_, _) { raise TypeError } expect(subject.capture_event(event, scope)).to be_a(Sentry::Event) - sleep(0.1) + sleep(0.2) expect(string_io.string).to match(/Event sending failed: TypeError/) expect(string_io.string).to match(/Unreported Event: Test message/)