Fix multijvm tests in zookeeper suites.
@@ -1241,7 +1241,7 @@ public abstract class GridAbstractTest extends JUnitAssertAware {
if (discoverySpi != null && !(discoverySpi instanceof TcpDiscoverySpi)) {
try {
// Clone added to support ZookeeperDiscoverySpi.
- cfg.setDiscoverySpi(cloneDiscoverySpi(cfg.getDiscoverySpi()));
+ cfg.setDiscoverySpi(cloneDiscoverySpi(discoverySpi));
resetDiscovery = false;
}
