Skip to content
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

Merged

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Jun 14, 2021

Adds spam to assertion failures / log messages with no benefit

@@ -11,11 +11,6 @@ import spock.lang.Specification

class InstrumentationModuleTest extends Specification {

def setup() {
assert System.getenv().findAll { it.key.startsWith("OTEL_") }.isEmpty()
Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor Author

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()
Copy link
Contributor

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

@anuraaga anuraaga merged commit ceaa92a into open-telemetry:main Jun 14, 2021
robododge pushed a commit to robododge/opentelemetry-java-instrumentation that referenced this pull request Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants