Also expect invalid json when testing graceful tinmeout fails
The probability is low, but given enough tests....
Change-Id: I15f8a60c70f95aaa3f6c2729027addf584a6eff5
diff --git a/tests/testthat/test-KorAPConnection.R b/tests/testthat/test-KorAPConnection.R
index 9eea61f..2f3d0db 100644
--- a/tests/testthat/test-KorAPConnection.R
+++ b/tests/testthat/test-KorAPConnection.R
@@ -3,7 +3,7 @@
})
test_that("KorAPConnection fails gracefully on timeout", {
- expect_message(new("KorAPConnection", apiUrl="http://httpbin.org/delay/3", timeout = 1), "No internet|Timeout")
+ expect_message(new("KorAPConnection", apiUrl="http://httpbin.org/delay/3", timeout = 1), "No internet|Timeout|json")
})
test_that("KorAPConnection is printable", {