From 6a1c50d4d06bc09c32f8cd9e8866070019a7e650 Mon Sep 17 00:00:00 2001 From: Bryan Cutler Date: Fri, 26 Jun 2015 18:00:40 -0700 Subject: [PATCH] [SPARK-6980] Minor cleanup of test case --- core/src/test/scala/org/apache/spark/rpc/RpcEnvSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/scala/org/apache/spark/rpc/RpcEnvSuite.scala b/core/src/test/scala/org/apache/spark/rpc/RpcEnvSuite.scala index 40550eebf5d87..0c109a276bbfd 100644 --- a/core/src/test/scala/org/apache/spark/rpc/RpcEnvSuite.scala +++ b/core/src/test/scala/org/apache/spark/rpc/RpcEnvSuite.scala @@ -169,7 +169,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll { // The SparkException cause should be a RpcTimeoutException with message indicating the // controlling timeout property assert(e.getCause.isInstanceOf[RpcTimeoutException]) - assert(e.getCause().getMessage().contains(shortProp)) + assert(e.getCause.getMessage.contains(shortProp)) } finally { anotherEnv.shutdown() anotherEnv.awaitTermination()