*/
public void testSettingNewTopologyHistorySize() throws Exception {
try {
final Grid g = startGrid();
GridTcpDiscoverySpi spi = (GridTcpDiscoverySpi)g.configuration().getDiscoverySpi();
assertEquals(DFLT_TOP_HISTORY_SIZE, spi.getTopHistorySize());
spi.setTopHistorySize(DFLT_TOP_HISTORY_SIZE + 1);
assertEquals(DFLT_TOP_HISTORY_SIZE + 1, spi.getTopHistorySize());
spi.setTopHistorySize(1);
assertEquals(DFLT_TOP_HISTORY_SIZE + 1, spi.getTopHistorySize());
}
finally {
stopGrid();
}
}