From fd78af410c0fdff3c3cb9d7c4dbc1ec7d5b57d23 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 28 Sep 2011 12:57:33 +0200 Subject: [PATCH] add () after side-effecting TestKit methods, fixes #1234 --- akka-testkit/src/main/scala/akka/testkit/TestKit.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala index 8485f41768..8af49eec47 100644 --- a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala +++ b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala @@ -119,7 +119,7 @@ trait TestKitLight { * Stop test actor. Should be done at the end of the test unless relying on * test actor timeout. */ - def stopTestActor { testActor.stop() } + def stopTestActor() { testActor.stop() } /** * Set test actor timeout. By default, the test actor shuts itself down @@ -144,7 +144,7 @@ trait TestKitLight { /** * Stop ignoring messages in the test actor. */ - def ignoreNoMsg { testActor ! TestActor.SetIgnore(None) } + def ignoreNoMsg() { testActor ! TestActor.SetIgnore(None) } /** * Obtain current time (`System.nanoTime`) as Duration. @@ -431,7 +431,7 @@ trait TestKitLight { /** * Same as `expectNoMsg(remaining)`, but correctly treating the timeFactor. */ - def expectNoMsg { expectNoMsg_internal(remaining) } + def expectNoMsg() { expectNoMsg_internal(remaining) } /** * Assert that no message is received for the specified time.