Skip to content

Commit 350bd2e

Browse files
author
Andrew Or
committed
Fix R test?
1 parent c53f483 commit 350bd2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/pkg/inst/tests/testthat/test_sparkSQL.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,8 @@ test_that("approxQuantile() on a DataFrame", {
18171817

18181818
test_that("SQL error message is returned from JVM", {
18191819
retError <- tryCatch(sql(sqlContext, "select * from blah"), error = function(e) e)
1820-
expect_equal(grepl("Table not found: blah", retError), TRUE)
1820+
expect_equal(grepl("Table not found", retError), TRUE)
1821+
expect_equal(grepl("blah", retError), TRUE)
18211822
})
18221823

18231824
irisDF <- suppressWarnings(createDataFrame(sqlContext, iris))

0 commit comments

Comments
 (0)