From 7873d9ce05d78cbde2163ad6cd4eb67d926c83fd Mon Sep 17 00:00:00 2001 From: thinkAfCod Date: Tue, 19 Dec 2023 15:55:43 +0800 Subject: [PATCH] fix: Inner watcher test --- .../src/test/java/io/optimism/l1/InnerWatcherTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hildr-node/src/test/java/io/optimism/l1/InnerWatcherTest.java b/hildr-node/src/test/java/io/optimism/l1/InnerWatcherTest.java index 95b3f516..fa37794f 100644 --- a/hildr-node/src/test/java/io/optimism/l1/InnerWatcherTest.java +++ b/hildr-node/src/test/java/io/optimism/l1/InnerWatcherTest.java @@ -20,9 +20,9 @@ import io.optimism.TestConstants; import io.optimism.config.Config; +import io.optimism.utilities.telemetry.Logging; +import io.optimism.utilities.telemetry.TracerTaskWrapper; import java.math.BigInteger; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; import org.jctools.queues.MessagePassingQueue; import org.jctools.queues.MpscGrowableArrayQueue; import org.junit.jupiter.api.BeforeAll; @@ -67,7 +67,7 @@ void testTryIngestBlock() throws Exception { if (!TestConstants.isConfiguredApiKeyEnv) { return; } - ExecutorService executor = Executors.newSingleThreadExecutor(); + TracerTaskWrapper.setTracerSupplier(Logging.INSTANCE::getTracer); var queue = new MpscGrowableArrayQueue(1024 * 4, 1024 * 64); var watcher = this.createWatcher(null, queue); watcher.startUp();