Skip to content

Commit

Permalink
Update error meesages for TextSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Mar 3, 2016
1 parent 99c39c6 commit 4e212b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class TextSuite extends QueryTest with SharedSQLContext {
val tempDirPath = Utils.createTempDir().getAbsolutePath()
testDf.write.option("compression", "illegal").mode(SaveMode.Overwrite).text(tempDirPath)
}
assert(errMsg.getMessage === "Codec [illegal] is not available. " +
"Known codecs are bzip2, deflate, lz4, gzip, snappy.")
assert(errMsg.getMessage.contains("Codec [illegal] is not available. " +
"Known codecs are"))
}

private def testFile: String = {
Expand Down

0 comments on commit 4e212b1

Please sign in to comment.