aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests/testthat/test_client.R
diff options
context:
space:
mode:
authorSun Rui <sunrui2016@gmail.com>2016-05-03 09:29:49 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-05-03 09:29:49 -0700
commit8b6491fc0b49b4e363887ae4b452ba69fe0290d5 (patch)
treeeca87e0d6c0489ec0b4cb1a1978bb4739cf28bb3 /R/pkg/inst/tests/testthat/test_client.R
parentd26f7cb0121767da678bbbbf3a0e31c63d5e3159 (diff)
downloadspark-8b6491fc0b49b4e363887ae4b452ba69fe0290d5.tar.gz
spark-8b6491fc0b49b4e363887ae4b452ba69fe0290d5.tar.bz2
spark-8b6491fc0b49b4e363887ae4b452ba69fe0290d5.zip
[SPARK-15091][SPARKR] Fix warnings and a failure in SparkR test cases with testthat version 1.0.1
## What changes were proposed in this pull request? Fix warnings and a failure in SparkR test cases with testthat version 1.0.1 ## How was this patch tested? SparkR unit test cases. Author: Sun Rui <sunrui2016@gmail.com> Closes #12867 from sun-rui/SPARK-15091.
Diffstat (limited to 'R/pkg/inst/tests/testthat/test_client.R')
-rw-r--r--R/pkg/inst/tests/testthat/test_client.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/inst/tests/testthat/test_client.R b/R/pkg/inst/tests/testthat/test_client.R
index a0664f32f3..28276a020d 100644
--- a/R/pkg/inst/tests/testthat/test_client.R
+++ b/R/pkg/inst/tests/testthat/test_client.R
@@ -32,7 +32,7 @@ test_that("no package specified doesn't add packages flag", {
})
test_that("multiple packages don't produce a warning", {
- expect_that(generateSparkSubmitArgs("", "", "", "", c("A", "B")), not(gives_warning()))
+ expect_warning(generateSparkSubmitArgs("", "", "", "", c("A", "B")), NA)
})
test_that("sparkJars sparkPackages as character vectors", {