Skip to content

Commit

Permalink
[SPARK-10618] [Mesos] checking in missed Style check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepyThread committed Dec 16, 2015
1 parent 53e0600 commit f1bb5b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f1bb5b1

Please sign in to comment.