From f1bb5b1033216ac935d98a41e5528412dec13ec1 Mon Sep 17 00:00:00 2001 From: Akash Mishra Date: Wed, 16 Dec 2015 14:37:13 +0100 Subject: [PATCH] [SPARK-10618] [Mesos] checking in missed Style check fix --- .../cluster/mesos/CoarseMesosSchedulerBackendSuite.scala | 3 ++- .../cluster/mesos/MesosSchedulerBackendSuite.scala | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackendSuite.scala b/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackendSuite.scala index f6517c9090415..9a4f9b7352fd4 100644 --- a/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackendSuite.scala +++ b/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackendSuite.scala @@ -201,7 +201,8 @@ class CoarseMesosSchedulerBackendSuite extends SparkFunSuite } - test("isOfferSatisfiesRequirements return false when memory in offer is less than required memory") { + test("isOfferSatisfiesRequirements return false when memory in offer is less" + + " than required memory") { val schedulerBackend = createSchedulerBackendForGivenSparkConf(sc) assert(schedulerBackend.isOfferSatisfiesRequirements("Slave1", 1, 5, sc) === false) diff --git a/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerBackendSuite.scala b/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerBackendSuite.scala index cbfd4bcae7bf2..9e013a19c6b18 100644 --- a/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerBackendSuite.scala +++ b/core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerBackendSuite.scala @@ -365,14 +365,16 @@ class MesosSchedulerBackendSuite extends SparkFunSuite with LocalSparkContext wi new MesosSchedulerBackend(taskScheduler, sc, "master") } - test("isOfferSatisfiesRequirements return true when there offer meet cpu and memory requirement") { + test("isOfferSatisfiesRequirements return true when there offer meet cpu and" + + " memory requirement") { val sc = mock[SparkContext] val schedulerBackend = createSchedulerBackendForGivenSparkConf(sc) assert(schedulerBackend.isOfferSatisfiesRequirements( 5, 10000, "Slave1", sc)) } - test("isOfferSatisfiesRequirements return false when memory in offer is less than required memory") { + test("isOfferSatisfiesRequirements return false when memory in offer is less " + + "than required memory") { val sc = mock[SparkContext] val schedulerBackend = createSchedulerBackendForGivenSparkConf(sc)