Found AkkaRemoteSpec.testConf singleton to use.

This commit is contained in:
Eugene Vigdorchik 2011-12-22 16:35:23 +04:00
parent a7fc87a9d1
commit 440e5a5f69

View file

@ -7,10 +7,10 @@ import com.typesafe.config.Config
import org.apache.zookeeper._
import ZooDefs.Ids
class ZKClient(config: Config) extends Watcher {
object ZKClient extends Watcher {
// Don't forget to close!
lazy val zk: ZooKeeper = {
val remoteNodes = config.getString("akka.test.remote.nodes") split ',' map {
val remoteNodes = AkkaRemoteSpec.testConf.getString("akka.test.remote.nodes") split ',' map {
case hostport => hostport.split(":")(0)
}