Skip to content

Commit

Permalink
Unify constructor of ComputeNodeInstanceContext
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Dec 17, 2024
1 parent 1d66c04 commit 7990a56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7990a56

Please sign in to comment.