use of com.alibaba.nacos.core.distributed.distro.entity.DistroKey in project nacos by alibaba.
the class DistroConsistencyServiceImplTest method testPutWithoutListener.
@Test
public void testPutWithoutListener() throws NacosException {
String key = KeyBuilder.buildInstanceListKey(TEST_NAMESPACE, TEST_SERVICE_NAME, true);
distroConsistencyService.put(key, instances);
verify(distroProtocol).sync(new DistroKey(key, KeyBuilder.INSTANCE_LIST_KEY_PREFIX), DataOperation.CHANGE, 1000L);
verify(notifier, never()).addTask(key, DataOperation.CHANGE);
verify(dataStore).put(eq(key), any(Datum.class));
}
Aggregations