Skip to content

Commit

Permalink
Add ClassRule for DittoTracingInitResource to disable tracing in the …
Browse files Browse the repository at this point in the history
…test;

Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed Nov 17, 2022
1 parent 30e4346 commit 56078a0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
import java.util.concurrent.CountDownLatch;

import org.eclipse.ditto.base.model.headers.DittoHeaders;
import org.eclipse.ditto.internal.utils.tracing.DittoTracingInitResource;
import org.eclipse.ditto.things.model.ThingId;
import org.eclipse.ditto.things.model.signals.commands.modify.DeleteThing;
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;

import com.typesafe.config.Config;
Expand All @@ -45,6 +47,10 @@
*/
public final class ShardRegionCreatorTest {

@ClassRule
public static final DittoTracingInitResource DITTO_TRACING_INIT_RESOURCE =
DittoTracingInitResource.disableDittoTracing();

private static final Config CONFIG = ConfigFactory.load("shard-region-test");

private final ActorSystem system1 = ActorSystem.create("system", CONFIG);
Expand Down

0 comments on commit 56078a0

Please sign in to comment.