Running ‘testthat.R’ [2s/506s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ecb)
  > 
  > test_check("ecb")
  ── 1. Error: get_dataflows returns a data frame (@tests.R#12)  ─────────────────
  HTTP failure: 504
  <HTML><HEAD>
  <TITLE>Gateway Timeout - In read </TITLE>
  </HEAD><BODY>
  <H1>Gateway Timeout</H1>
  The proxy server did not receive a timely response from the upstream server.<P>
  Reference&#32;&#35;1&#46;ac710617&#46;1528217258&#46;2827f5bf
  </BODY></HTML>
  1: expect_equal(class(get_dataflows()), c("tbl_df", "tbl", "data.frame")) at testthat/tests.R:12
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_dataflows()
  5: make_request(query_url, "metadata")
  6: check_status(req)
  7: stop("HTTP failure: ", req$status_code, "\n", httr::content(req, "text"))
  
  ── 2. Failure: malformed series key returns 404 error (@tests.R#25)  ───────────
  `get_data(key)` threw an error with unexpected message.
  Expected match: "404"
  Actual message: "HTTP failure: 500\nAn error has occurred. Please try again later or contact the support hotline at statistics@ecb.europa.eu."
  
  ── 3. Failure: malformed series key returns 404 error (@tests.R#26)  ───────────
  `get_dimensions(key)` threw an error with unexpected message.
  Expected match: "404"
  Actual message: "HTTP failure: 500\nAn error has occurred. Please try again later or contact the support hotline at statistics@ecb.europa.eu."
  
  ── 4. Failure: malformed series key returns 404 error (@tests.R#27)  ───────────
  `get_description(key)` threw an error with unexpected message.
  Expected match: "404"
  Actual message: "HTTP failure: 500\nAn error has occurred. Please try again later or contact the support hotline at statistics@ecb.europa.eu."
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 5 SKIPPED: 0 FAILED: 4
  1. Error: get_dataflows returns a data frame (@tests.R#12) 
  2. Failure: malformed series key returns 404 error (@tests.R#25) 
  3. Failure: malformed series key returns 404 error (@tests.R#26) 
  4. Failure: malformed series key returns 404 error (@tests.R#27) 
  
  Error: testthat unit tests failed
  Execution halted