DDV test fails when DDV functionality is not compiled in
@@ -237,14 +237,14 @@ public class LogManagerDDVUnitTest extends MaeUnitLogger {
copyConfig.getLogConfiguration(LogConfigurationKey.CFG_MAP_TPM), is(not(nullValue())));
final ILogger secondaryLogger = secondaryManager.getLogger(contosoToken, "contoso", "");
- assertThat(
- secondaryManager.initializeDiagnosticDataViewer("contoso", "http://10.0.0.2"), is(true));
+ if (secondaryManager.initializeDiagnosticDataViewer("contoso", "http://10.0.0.2")) {
assertThat(secondaryManager.isViewerEnabled(), is(true));
secondaryLogger.logEvent("some.event");
secondaryManager.flush();
secondaryManager.pauseTransmission();
secondaryManager.disableViewer();
+ }
LogManager.flushAndTeardown();
}
