From 928997575077472b693283750a33e9f013eb7075 Mon Sep 17 00:00:00 2001 From: Juergen Fickel Date: Mon, 17 Oct 2022 15:36:48 +0200 Subject: [PATCH] Fixed failing unit tests because of uninitialized DittoTracing. Signed-off-by: Juergen Fickel --- .../persistence/ConnectionPersistenceOperationsActorIT.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/connectivity/service/src/test/java/org/eclipse/ditto/connectivity/service/messaging/persistence/ConnectionPersistenceOperationsActorIT.java b/connectivity/service/src/test/java/org/eclipse/ditto/connectivity/service/messaging/persistence/ConnectionPersistenceOperationsActorIT.java index 4ade438671..883749f270 100644 --- a/connectivity/service/src/test/java/org/eclipse/ditto/connectivity/service/messaging/persistence/ConnectionPersistenceOperationsActorIT.java +++ b/connectivity/service/src/test/java/org/eclipse/ditto/connectivity/service/messaging/persistence/ConnectionPersistenceOperationsActorIT.java @@ -34,7 +34,9 @@ import org.eclipse.ditto.connectivity.service.enforcement.ConnectionEnforcerActorPropsFactory; import org.eclipse.ditto.internal.utils.config.ScopedConfig; import org.eclipse.ditto.internal.utils.persistence.mongo.ops.eventsource.MongoEventSourceITAssertions; +import org.eclipse.ditto.internal.utils.tracing.DittoTracingInitResource; import org.eclipse.ditto.utils.jsr305.annotations.AllValuesAreNonnullByDefault; +import org.junit.ClassRule; import org.junit.Test; import com.typesafe.config.Config; @@ -50,6 +52,10 @@ @AllValuesAreNonnullByDefault public final class ConnectionPersistenceOperationsActorIT extends MongoEventSourceITAssertions { + @ClassRule + public static final DittoTracingInitResource DITTO_TRACING_INIT_RESOURCE = + DittoTracingInitResource.disableDittoTracing(); + @Test public void purgeEntitiesWithoutNamespace() { assertPurgeEntitiesWithoutNamespace();