-
Notifications
You must be signed in to change notification settings - Fork 828
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
Disable default resource providers in tests. #3288
Disable default resource providers in tests. #3288
Conversation
@@ -11,11 +11,6 @@ import spock.lang.Specification | |||
|
|||
class InstrumentationModuleTest extends Specification { | |||
|
|||
def setup() { | |||
assert System.getenv().findAll { it.key.startsWith("OTEL_") }.isEmpty() |
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.
Couldn't figure out what these were here for
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.
Probably to make sure that we don't override default conf that we test below
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.
Yeah I thought it could be a reason - I'm comfortable with deleting since I don't think we do this in other tests
@@ -11,11 +11,6 @@ import spock.lang.Specification | |||
|
|||
class InstrumentationModuleTest extends Specification { | |||
|
|||
def setup() { | |||
assert System.getenv().findAll { it.key.startsWith("OTEL_") }.isEmpty() |
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.
Probably to make sure that we don't override default conf that we test below
Adds spam to assertion failures / log messages with no benefit