-
Notifications
You must be signed in to change notification settings - Fork 1k
convert cache provider test to java #14918
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
convert cache provider test to java #14918
Conversation
muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/AgentCachingPoolStrategy.java
Show resolved
Hide resolved
muzzle/src/test/java/io/opentelemetry/javaagent/tooling/muzzle/CacheProviderTest.java
Outdated
Show resolved
Hide resolved
assertThat(key1).hasSameHashCodeAs(key2); | ||
assertThat(key1).isEqualTo(key2); | ||
// ensures that loader isn't collected | ||
assertThat(loader).isNotNull(); |
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.
loader can not be null at this point so, as it is, this assertion doesn't really make sense
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.
I think I get it now. The intention is to use the loader at the end of the method to ensure that it isn't collected before.
muzzle/src/test/java/io/opentelemetry/javaagent/tooling/muzzle/CacheProviderTest.java
Outdated
Show resolved
Hide resolved
@laurit please check again |
Part of #14803