Skip to content

Commit 80ce147

Browse files
tellisonmtbrandy
authored andcommitted
[MINOR] [CORE] Accept alternative mesos unsatisfied link error in test.
The IBM JVM reports an failed library load with a slightly different error message to Oracle's JVM. Update the test case to allow for either form. Author: Tim Ellison <[email protected]> Author: Tim Ellison <[email protected]> Closes apache#6119 from tellison/LibraryLoading and squashes the following commits: 2c5cd4e [Tim Ellison] Reduce assertion to check for the mesos library name f48c194 [Tim Ellison] Split long line b1079d7 [Tim Ellison] [MINOR] [CORE] Accept alternative mesos unsatisfied link error in test.
1 parent 3e83913 commit 80ce147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/scala/org/apache/spark/SparkContextSchedulerCreationSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class SparkContextSchedulerCreationSuite
159159
assert(sched.backend.getClass === expectedClass)
160160
} catch {
161161
case e: UnsatisfiedLinkError =>
162-
assert(e.getMessage.contains("no mesos in"))
162+
assert(e.getMessage.contains("mesos"))
163163
logWarning("Mesos not available, could not test actual Mesos scheduler creation")
164164
case e: Throwable => fail(e)
165165
}

0 commit comments

Comments
 (0)