Skip to content

Commit 4511037

Browse files
committed
fix test cases
1 parent b6bdf92 commit 4511037

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2659,7 +2659,7 @@ test_that("Call DataFrameWriter.save() API in Java without path and check argume
26592659
# It makes sure that we can omit path argument in write.df API and then it calls
26602660
# DataFrameWriter.save() without path.
26612661
expect_error(write.df(df, source = "csv"),
2662-
"Error in save : illegal argument - Expected exactly one path to be specified")
2662+
"Error in save : illegal argument - 'path' is not specified")
26632663
expect_error(write.json(df, jsonPath),
26642664
"Error in json : analysis error - path file:.*already exists")
26652665
expect_error(write.text(df, jsonPath),
@@ -2684,8 +2684,7 @@ test_that("Call DataFrameWriter.load() API in Java without path and check argume
26842684
# It makes sure that we can omit path argument in read.df API and then it calls
26852685
# DataFrameWriter.load() without path.
26862686
expect_error(read.df(source = "json"),
2687-
paste("Error in loadDF : analysis error - Unable to infer schema for JSON at .",
2688-
"It must be specified manually"))
2687+
paste("Error in loadDF : illegal argument - 'path' is not specified"))
26892688
expect_error(read.df("arbitrary_path"), "Error in loadDF : analysis error - Path does not exist")
26902689
expect_error(read.json("arbitrary_path"), "Error in json : analysis error - Path does not exist")
26912690
expect_error(read.text("arbitrary_path"), "Error in text : analysis error - Path does not exist")

0 commit comments

Comments
 (0)