Added 'node.shutdown()' to all multi-jvm tests.

Renamed MigrationExplicit test.

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
This commit is contained in:
Jonas Bonér 2011-06-26 15:26:32 +02:00
parent 7a5c95e44d
commit 426b1328f2
8 changed files with 14 additions and 0 deletions

View file

@ -39,6 +39,8 @@ class NewLeaderChangeListenerMultiJvmNode1 extends WordSpec with MustMatchers wi
}
latch.await(10, TimeUnit.SECONDS) must be === true
node.shutdown()
}
}
@ -63,6 +65,8 @@ class NewLeaderChangeListenerMultiJvmNode2 extends WordSpec with MustMatchers {
barrier("start-node2", NrOfNodes) {
node.start()
}
node.shutdown()
}
}
}

View file

@ -38,6 +38,8 @@ class NodeConnectedChangeListenerMultiJvmNode1 extends WordSpec with MustMatcher
barrier("start-node2", NrOfNodes) {
latch.await(5, TimeUnit.SECONDS) must be === true
}
node.shutdown()
}
}
@ -61,6 +63,8 @@ class NodeConnectedChangeListenerMultiJvmNode2 extends WordSpec with MustMatcher
barrier("start-node2", NrOfNodes) {
node.start()
}
node.shutdown()
}
}
}

View file

@ -40,6 +40,8 @@ class NodeDisconnectedChangeListenerMultiJvmNode1 extends WordSpec with MustMatc
latch.await(10, TimeUnit.SECONDS) must be === true
}
node.shutdown()
}
override def beforeAll() = {

View file

@ -61,6 +61,8 @@ class MigrationExplicitMultiJvmNode1 extends WordSpec with MustMatchers with Bef
actorRef.address must be("hello-world")
(actorRef ? "Hello").as[String].get must be("World from node [node1]")
}
node.shutdown()
}
}
@ -107,6 +109,8 @@ class MigrationExplicitMultiJvmNode2 extends WordSpec with MustMatchers {
barrier("check-actor-is-moved-to-node1", NrOfNodes) {
}
node.shutdown()
}
}
}