diff options
author | Sun Rui <sunrui2016@gmail.com> | 2016-05-03 09:29:49 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-05-03 09:29:49 -0700 |
commit | 8b6491fc0b49b4e363887ae4b452ba69fe0290d5 (patch) | |
tree | eca87e0d6c0489ec0b4cb1a1978bb4739cf28bb3 /R/pkg/inst/tests/testthat/test_context.R | |
parent | d26f7cb0121767da678bbbbf3a0e31c63d5e3159 (diff) | |
download | spark-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_context.R')
-rw-r--r-- | R/pkg/inst/tests/testthat/test_context.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/inst/tests/testthat/test_context.R b/R/pkg/inst/tests/testthat/test_context.R index ca04342cd5..0e5e15c0a9 100644 --- a/R/pkg/inst/tests/testthat/test_context.R +++ b/R/pkg/inst/tests/testthat/test_context.R @@ -138,7 +138,7 @@ test_that("sparkJars sparkPackages as comma-separated strings", { # check normalizePath f <- dir()[[1]] - expect_that(processSparkJars(f), not(gives_warning())) + expect_warning(processSparkJars(f), NA) expect_match(processSparkJars(f), f) }) |