Running ‘testthat.R’ [1s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(hypothesisr)
  > 
  > test_check("hypothesisr")
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 7 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test_crud.R:5:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_search.R:17:3'): hs_search returns a list of the expected format. ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Failed writing received data to disk/application
  Backtrace:
      ▆
   1. └─hypothesisr::hs_search(text = "ulysses", limit = 5) at test_search.R:17:3
   2.   └─hypothesisr:::hs_search_handler(...)
   3.     └─httr::GET(formatted_url, httr::accept_json())
   4.       └─httr:::request_perform(req, hu$handle$handle)
   5.         ├─httr:::request_fetch(req$output, req$url, handle)
   6.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   7.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test_search.R:31:3'): custom fields in hs_search are correctly added to URL. ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Failed writing received data to disk/application
  Backtrace:
      ▆
   1. └─hypothesisr::hs_search(limit = 5, custom = list(tags = "todo")) at test_search.R:31:3
   2.   └─hypothesisr:::hs_search_handler(...)
   3.     └─httr::GET(formatted_url, httr::accept_json())
   4.       └─httr:::request_perform(req, hu$handle$handle)
   5.         ├─httr:::request_fetch(req$output, req$url, handle)
   6.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   7.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test_search.R:36:3'): Truncated results generate a message and table attribute. ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Failed writing received data to disk/application
  Backtrace:
       ▆
    1. ├─testthat::expect_message(hs_todo <- hs_search(text = "todo")) at test_search.R:36:3
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─hypothesisr::hs_search(text = "todo")
    7.   └─hypothesisr:::hs_search_handler(...)
    8.     └─httr::GET(formatted_url, httr::accept_json())
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 7 ]
  Error: Test failures
  Execution halted