Found AkkaRemoteSpec.testConf singleton to use.
This commit is contained in:
parent
a7fc87a9d1
commit
440e5a5f69
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue