Skip to content

Commit b5b3818

Browse files
authored
[Bugfix] Remove shared actor system in BlockFetcherSpec
* [Kaizen] Add 'testAll' sbt command * [Bugfix] Remove shared actor system in BlockFetcherSpec
1 parent 0cc1c27 commit b5b3818

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

build.sbt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,18 @@ addCommandAlias(
290290
|""".stripMargin
291291
)
292292

293+
// testAll
294+
addCommandAlias(
295+
"testAll",
296+
""";compile-all
297+
|;rlp/test
298+
|;bytes/test
299+
|;crypto/test
300+
|;test
301+
|;it:test
302+
|""".stripMargin
303+
)
304+
293305
// Scala 2.12 only has up to 1.4.5, while 2.13 only from 1.4.7
294306
// In theory we should be able to switch on `scalaVersion.value` but it doesn't seem to work.
295307
scapegoatVersion in ThisBuild := (sys.env.getOrElse("SCAPEGOAT_VERSION", "1.4.7"))

src/test/scala/io/iohk/ethereum/blockchain/sync/regular/BlockFetcherSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ import scala.concurrent.duration._
3636

3737
class BlockFetcherSpec extends ScalaTestWithActorTestKit() with AnyFreeSpecLike with Matchers with SecureRandomBuilder {
3838

39-
val as: ActorSystem = ActorSystem("BlockFetcherSpec_System")
40-
4139
"BlockFetcher" - {
4240

4341
"should not requests headers upon invalidation while a request is already in progress, should resume after response" in new TestSetup {
@@ -271,6 +269,8 @@ class BlockFetcherSpec extends ScalaTestWithActorTestKit() with AnyFreeSpecLike
271269
}
272270

273271
trait TestSetup extends TestSyncConfig {
272+
val as: ActorSystem = ActorSystem("BlockFetcherSpec_System")
273+
274274
val time = new VirtualTime
275275

276276
val peersClient = TestProbe()(as)

0 commit comments

Comments
 (0)