From 7990a56c3a2d116af3c31d9f79937c3785d45621 Mon Sep 17 00:00:00 2001 From: zhangliang Date: Tue, 17 Dec 2024 22:20:36 +0800 Subject: [PATCH] Unify constructor of ComputeNodeInstanceContext --- .../infra/instance/ComputeNodeInstanceContextTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/common/src/test/java/org/apache/shardingsphere/infra/instance/ComputeNodeInstanceContextTest.java b/infra/common/src/test/java/org/apache/shardingsphere/infra/instance/ComputeNodeInstanceContextTest.java index a60e8fe7b92c1..bd57e2b09e85d 100644 --- a/infra/common/src/test/java/org/apache/shardingsphere/infra/instance/ComputeNodeInstanceContextTest.java +++ b/infra/common/src/test/java/org/apache/shardingsphere/infra/instance/ComputeNodeInstanceContextTest.java @@ -112,7 +112,7 @@ void assertUpdateWorkerIdWithCurrentInstance() { @Test void assertUpdateWorkerIdWithOtherInstance() { ComputeNodeInstance instance = new ComputeNodeInstance(new ProxyInstanceMetaData("foo_instance_id", 3306)); - ComputeNodeInstanceContext instanceContext = new ComputeNodeInstanceContext(instance, mock(ModeConfiguration.class), new EventBusContext()); + ComputeNodeInstanceContext instanceContext = new ComputeNodeInstanceContext(instance, mock(ModeConfiguration.class), new EventBusContext()); instanceContext.init(mock(WorkerIdGenerator.class), mock(LockContext.class)); instanceContext.addComputeNodeInstance(new ComputeNodeInstance(new ProxyInstanceMetaData("bar_instance_id", 3307))); instanceContext.updateWorkerId("bar_instance_id", 10);