#3018 - Enabling -Xlint and dealing with the situation that occurs

This commit is contained in:
Viktor Klang 2013-03-28 23:45:48 +01:00
parent 88f7e28c6b
commit c883705242
75 changed files with 249 additions and 275 deletions

View file

@ -111,13 +111,13 @@ abstract class StatsSampleSpec extends MultiNodeSpec(StatsSampleSpecConfig)
//#test-statsService
"show usage of the statsService from one node" in within(15 seconds) {
runOn(second) {
assertServiceOk
assertServiceOk()
}
testConductor.enter("done-2")
}
def assertServiceOk: Unit = {
def assertServiceOk(): Unit = {
val service = system.actorFor(node(third) / "user" / "statsService")
// eventually the service should be ok,
// first attempts might fail because worker actors not started yet
@ -135,7 +135,7 @@ abstract class StatsSampleSpec extends MultiNodeSpec(StatsSampleSpecConfig)
//#test-statsService
"show usage of the statsService from all nodes" in within(15 seconds) {
assertServiceOk
assertServiceOk()
testConductor.enter("done-3")
}