Skip to content

Commit

Permalink
[hotfix][tests] Add "javax.management.*" to PowerMock ignore list
Browse files Browse the repository at this point in the history
The test otherwise logged a LinkageError since it tries to load the MBeanServer interface which was already loaded.
  • Loading branch information
zentol committed Feb 5, 2020
1 parent 0817a61 commit 031256e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*/
@RunWith(PowerMockRunner.class)
@PrepareForTest({DMetric.class, DatadogHttpClient.class})
@PowerMockIgnore("javax.net.ssl.*")
@PowerMockIgnore({"javax.net.ssl.*", "javax.management.*"})
public class DatadogHttpClientTest {

private static List<String> tags = Arrays.asList("tag1", "tag2");
Expand Down

0 comments on commit 031256e

Please sign in to comment.