-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve integration testing for dynamic configuration #3012
Conversation
after do | ||
# Ensure RC background worker is stopped before we disable webmock | ||
# to avoid failed HTTP requests, trying to make a real remote call. | ||
Datadog.shutdown! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This currently generates an error in a background thread, after the test assertions finish, because the RC worker thread tries to make an unmocked RC call after we call WebMock.disable!
. This PR ensures the RC worker is closed before WebMock.disable!
is called.
after { SemanticLogger.remove_appender(appender) } | ||
after do | ||
SemanticLogger.remove_appender(appender) | ||
SemanticLogger::Logger.processor.thread.kill |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a leaky thread, emitting warnings on test run.
Codecov Report
@@ Coverage Diff @@
## master #3012 +/- ##
==========================================
+ Coverage 98.08% 98.09% +0.01%
==========================================
Files 1316 1317 +1
Lines 73819 74281 +462
Branches 3385 3387 +2
==========================================
+ Hits 72403 72865 +462
Misses 1416 1416
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This PR makes the integration tests for dynamic configuration a bit less noisy and a bit less flaky.
The tests only fail for JRuby 9.2, but the noisy threads is for all versions of Ruby.