Running ‘testthat.R’ [23s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(plumber)
  > 
  > test_check("plumber")
  
   *** caught segfault ***
  address 0x6, cause 'memory not mapped'
  
  Traceback:
   1: parse_string(txt, bigint_as_char)
   2: parseJSON(txt, bigint_as_char)
   3: parse_and_simplify(json, simplifyVector = simplifyVector, ...)
   4: parse_json(txt, simplifyVector = simplifyVector, ...)
   5: safeFromJSON(.)
   6: function_list[[k]](value)
   7: withVisible(function_list[[k]](value))
   8: freduce(value, `_function_list`)
   9: `_fseq`(`_lhs`)
  10: eval(quote(`_fseq`(`_lhs`)), env, env)
  11: eval(quote(`_fseq`(`_lhs`)), env, env)
  12: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  13: encodedValue %>% base64enc::base64decode() %>% rawToChar() %>%     safeFromJSON()
  14: decodeCookie(encryptedParsed$cookieVal, keyB)
  15: eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  16: withCallingHandlers({    code    NULL}, error = function(cnd) {    if (can_entrace(cnd)) {        cnd <- cnd_entrace(cnd)    }    return_from(env, cnd)})
  17: .capture(act$val <- eval_bare(quo_get_expr(.quo), quo_get_env(.quo)),     ...)
  18: quasi_capture(enquo(object), label, capture_error, entrace = TRUE)
  19: expect_error({    encrypted <- encodeCookie(x, keyA)    encryptedStr <- cookieToStr("cookieVal", encrypted)    encryptedParsed <- parseCookies(encryptedStr)    maybeX <- decodeCookie(encryptedParsed$cookieVal, keyB)}, err)
  20: eval(code, test_env)
  21: eval(code, test_env)
  22: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  25: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  26: doTryCatch(return(expr), name, parentenv, handler)
  27: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  28: tryCatchList(expr, classes, parentenv, handlers)
  29: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  30: test_code(desc, code, env = parent.frame())
  31: test_that("cookie encyption fails smoothly", {    skip_if_no_cookie_support()    x <- list(x = 4, y = 5)    garbage <- x %>% serialize(NULL) %>% sodium::hash() %>% base64enc::base64encode()    expect_error({        decodeCookie(garbage, NULL)    })    expect_error({        decodeCookie(garbage, asCookieKey(random_cookie_key()))    }, "Could not separate")    infoList <- list(list(a = asCookieKey(random_cookie_key()),         b = asCookieKey(random_cookie_key()), error = "Failed to decrypt"),         list(a = NULL, b = asCookieKey(random_cookie_key()),             error = "Could not separate"), list(a = asCookieKey(random_cookie_key()),             b = NULL))    for (info in infoList) {        keyA <- info$a        keyB <- info$b        err <- info$error        expect_error({            encrypted <- encodeCookie(x, keyA)            encryptedStr <- cookieToStr("cookieVal", encrypted)            encryptedParsed <- parseCookies(encryptedStr)            maybeX <- decodeCookie(encryptedParsed$cookieVal,                 keyB)        }, err)    }})
  32: eval(code, test_env)
  33: eval(code, test_env)
  34: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  35: doTryCatch(return(expr), name, parentenv, handler)
  36: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  37: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  38: doTryCatch(return(expr), name, parentenv, handler)
  39: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  40: tryCatchList(expr, classes, parentenv, handlers)
  41: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  42: test_code(NULL, exprs, env)
  43: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  44: force(code)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  48: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  49: FUN(X[[i]], ...)
  50: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  51: force(code)
  52: doWithOneRestart(return(expr), restart)
  53: withOneRestart(expr, restarts[[1L]])
  54: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  55: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  56: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  57: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  58: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  59: test_check("plumber")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault