From badbf0e6766a99565e061063041f231d119d6d3a Mon Sep 17 00:00:00 2001 From: William Sheu Date: Tue, 29 May 2018 16:00:47 -0700 Subject: [PATCH] Update unit test variable names to match rename --- core/src/test/scala/org/apache/spark/SparkConfSuite.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/scala/org/apache/spark/SparkConfSuite.scala b/core/src/test/scala/org/apache/spark/SparkConfSuite.scala index 49937995bdefe..18cb813e2f635 100644 --- a/core/src/test/scala/org/apache/spark/SparkConfSuite.scala +++ b/core/src/test/scala/org/apache/spark/SparkConfSuite.scala @@ -342,7 +342,7 @@ class SparkConfSuite extends SparkFunSuite with LocalSparkContext with ResetSyst } val defaultIllegalValue = "SomeIllegalValue" - val illegalArgumentTests : Map[String, (SparkConf, String) => Any] = Map( + val illegalValueTests : Map[String, (SparkConf, String) => Any] = Map( "getTimeAsSeconds" -> (_.getTimeAsSeconds(_)), "getTimeAsSeconds with default" -> (_.getTimeAsSeconds(_, defaultIllegalValue)), "getTimeAsMs" -> (_.getTimeAsMs(_)), @@ -362,7 +362,7 @@ class SparkConfSuite extends SparkFunSuite with LocalSparkContext with ResetSyst "getBoolean" -> (_.getBoolean(_, false)) ) - illegalArgumentTests.foreach { case (name, getValue) => + illegalValueTests.foreach { case (name, getValue) => test(s"SPARK-24337: $name throws an useful error message with key name") { val key = "SomeKey" val conf = new SparkConf()