-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into node-339-level-db
- Loading branch information
Showing
41 changed files
with
429 additions
and
498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.wavesplatform.it | ||
|
||
import monix.eval.Coeval | ||
import org.scalatest.{BeforeAndAfterAll, Suite} | ||
|
||
trait HasDocker extends BeforeAndAfterAll { | ||
this: Suite => | ||
protected val dockerSingleton: Coeval[Docker] = Coeval.evalOnce(createDocker) | ||
protected final def docker: Docker = dockerSingleton() | ||
|
||
protected def createDocker: Docker = Docker(getClass) | ||
override protected def afterAll(): Unit = { | ||
super.afterAll() | ||
docker.close() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.wavesplatform.it | ||
|
||
import com.typesafe.config.Config | ||
import monix.eval.Coeval | ||
import org.scalatest.Suite | ||
|
||
trait HasNodes extends HasDocker { | ||
this: Suite => | ||
|
||
protected def nodeConfigs: Seq[Config] | ||
protected val nodesSingleton: Coeval[Seq[Node]] = dockerSingleton | ||
.map(_.startNodes(nodeConfigs)) | ||
.memoize | ||
|
||
protected final def nodes: Seq[Node] = nodesSingleton() | ||
|
||
override protected def beforeAll(): Unit = { | ||
nodesSingleton.run | ||
super.beforeAll() | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.