diff --git a/src/test/java/org/datadog/jenkins/plugins/datadog/logs/LogCollectionTest.java b/src/test/java/org/datadog/jenkins/plugins/datadog/logs/LogCollectionTest.java index 0139e388..9282389a 100644 --- a/src/test/java/org/datadog/jenkins/plugins/datadog/logs/LogCollectionTest.java +++ b/src/test/java/org/datadog/jenkins/plugins/datadog/logs/LogCollectionTest.java @@ -31,10 +31,10 @@ public class LogCollectionTest { @BeforeClass public static void staticSetup() throws Exception { - ClientHolder.setClient(stubClient); DatadogGlobalConfiguration cfg = DatadogUtilities.getDatadogGlobalDescriptor(); ExtensionList.clearLegacyInstances(); cfg.setCollectBuildLogs(true); + ClientHolder.setClient(stubClient); j.createOnlineSlave(new LabelAtom("test")); }