From d297b0e8f887ee8e20a355d9454e844be253c420 Mon Sep 17 00:00:00 2001 From: zhangliang Date: Thu, 23 Nov 2023 10:51:50 +0800 Subject: [PATCH] Fix test case --- .../job/service/PipelineJobGovernanceRepositoryTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/it/pipeline/src/test/java/org/apache/shardingsphere/test/it/data/pipeline/core/job/service/PipelineJobGovernanceRepositoryTest.java b/test/it/pipeline/src/test/java/org/apache/shardingsphere/test/it/data/pipeline/core/job/service/PipelineJobGovernanceRepositoryTest.java index ccebbd8414a5f..402e31c01c3e3 100644 --- a/test/it/pipeline/src/test/java/org/apache/shardingsphere/test/it/data/pipeline/core/job/service/PipelineJobGovernanceRepositoryTest.java +++ b/test/it/pipeline/src/test/java/org/apache/shardingsphere/test/it/data/pipeline/core/job/service/PipelineJobGovernanceRepositoryTest.java @@ -24,6 +24,7 @@ import org.apache.shardingsphere.mode.manager.ContextManager; import org.apache.shardingsphere.mode.repository.cluster.ClusterPersistRepository; import org.apache.shardingsphere.test.it.data.pipeline.core.util.PipelineContextUtils; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import java.util.Optional; @@ -32,6 +33,11 @@ class PipelineJobGovernanceRepositoryTest { + @BeforeAll + static void beforeClass() { + PipelineContextUtils.mockModeConfigAndContextManager(); + } + @Test void assertDelete() { ClusterPersistRepository clusterPersistRepository = getClusterPersistRepository();