Running ‘testthat.R’ [3s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(xlm)
  > 
  > test_check("xlm")
  ── 1. Error: (unknown) (@test-Account.R#6)  ────────────────────────────────────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: Account$new(valid_pk, "testnet") at testthat/test-Account.R:6
  2: .subset2(public_bind_env, "initialize")(...)
  3: getAccountDetail(pk, domain = domain)
  4: .getRequest(request)
  5: .checkResponse(response)
  6: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 2. Error: The method to retrieve effects, transactions etc can be called succ
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: Ledger$new(test_sequence, domain = domain) at testthat/test-Ledger.R:34
  2: .subset2(public_bind_env, "initialize")(...)
  3: getLedgerDetail(sequence, domain = domain)
  4: .getRequest(url)
  5: .checkResponse(response)
  6: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 3. Error: (unknown) (@test-Transaction.R#11)  ───────────────────────────────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: Transaction$new(valid_hash, "testnet") at testthat/test-Transaction.R:11
  2: .subset2(public_bind_env, "initialize")(...)
  3: getTransactionDetail(hash, domain = domain)
  4: .getRequest(request)
  5: .checkResponse(response)
  6: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 4. Error: Valid account returns a 200 response with the expected fields. (@te
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getAccountDetail(valid_pk, domain = domain) at testthat/test-getAccountDetail.R:7
  2: .getRequest(request)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 5. Failure: Invalid accounts are handled appropriately. (@test-getAccountDeta
  `getAccountDetail(invalid_pk, domain = domain)` did not throw an error.
  
  ── 6. Failure: The first 20 assets from the network can be pulled. (@test-getAss
  assets$asset_code[1] not equal to `id`.
  1/1 mismatches
  x[1]: "004d40"
  y[1]: "000001"
  
  ── 7. Failure: The first 20 effects from the network can be pulled. (@test-getEf
  effects$id[1] not equal to `e1_id`.
  1/1 mismatches
  x[1]: "0000000515396079617-0000000001"
  y[1]: "0000010157597659137-0000000001"
  
  ── 8. Failure: List object can be returned instead of a data.table. (@test-getEf
  effects_ls[["_embedded"]][["records"]][[1]]$id not equal to `e1_id`.
  1/1 mismatches
  x[1]: "0000000515396079617-0000000001"
  y[1]: "0000010157597659137-0000000001"
  
  ── 9. Error: Valid public key returns a 200 with the correct fields populated. (
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getEffects_Account(valid_pk, domain = domain, data.table = FALSE) at testthat/test-getEffects_Account.R:9
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 10. Error: Valid account can also return a data.table. (@test-getEffects_Acco
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getEffects_Account(valid_pk, domain = domain) at testthat/test-getEffects_Account.R:18
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 11. Error: Parameters can be tuned. (@test-getEffects_Account.R#26)  ────────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getEffects_Account(valid_pk, domain = domain, data.table = FALSE, limit = 99, order = "desc") at testthat/test-getEffects_Account.R:26
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 12. Error: Valid public key returns a 200 with the correct fields populated. 
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getEffects_Ledger(valid_sequence, domain = domain, data.table = FALSE) at testthat/test-getEffects_Ledger.R:9
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 13. Error: Valid account can also return a data.table. (@test-getEffects_Ledg
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getEffects_Ledger(valid_sequence, domain = domain) at testthat/test-getEffects_Ledger.R:18
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 14. Error: Parameters can be tuned. (@test-getEffects_Ledger.R#26)  ─────────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getEffects_Ledger(valid_sequence, domain = domain, data.table = FALSE, limit = 101, 
         order = "desc") at testthat/test-getEffects_Ledger.R:26
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 15. Failure: The first 20 operations from the network can be pulled. (@test-g
  operations$id[1] not equal to `o1_id`.
  1/1 mismatches
  x[1]: "515396079617"
  y[1]: "10157597659137"
  
  ── 16. Failure: List object can be returned instead of a data.table. (@test-getO
  operations_ls[["_embedded"]][["records"]][[1]]$id not equal to `o1_id`.
  1/1 mismatches
  x[1]: "515396079617"
  y[1]: "10157597659137"
  
  ── 17. Error: Valid public key returns a 200 with the correct fields populated. 
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getOperations_Account(valid_pk, domain = domain, data.table = FALSE) at testthat/test-getOperations_Account.R:9
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 18. Error: Valid account can also return a data.table. (@test-getOperations_A
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getOperations_Account(valid_pk, domain = domain) at testthat/test-getOperations_Account.R:18
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 19. Error: Parameters can be tuned. (@test-getOperations_Account.R#26)  ─────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getOperations_Account(valid_pk, domain = domain, data.table = FALSE, limit = 56, 
         order = "desc") at testthat/test-getOperations_Account.R:26
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 20. Error: Valid public key returns a 200 with the correct fields populated. 
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getOperations_Ledger(valid_sequence, domain = domain, data.table = FALSE) at testthat/test-getOperations_Ledger.R:9
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 21. Error: Valid account can also return a data.table. (@test-getOperations_L
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: expect_warning(getOperations_Ledger(valid_sequence, domain = domain)) at testthat/test-getOperations_Ledger.R:18
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: getOperations_Ledger(valid_sequence, domain = domain)
  7: .getRequest(request, query_list)
  8: .checkResponse(response)
  9: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 22. Error: Parameters can be tuned. (@test-getOperations_Ledger.R#29)  ──────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getOperations_Ledger(valid_sequence, domain = domain, data.table = FALSE, limit = 56, 
         order = "desc") at testthat/test-getOperations_Ledger.R:29
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 23. Failure: The first 20 payments from the network can be pulled. (@test-get
  payments$id[1] not equal to `p1_id`.
  1/1 mismatches
  x[1]: "515396079617"
  y[1]: "10157597659137"
  
  ── 24. Failure: List object can be returned instead of a data.table. (@test-getP
  payments_ls[["_embedded"]][["records"]][[1]]$id not equal to `p1_id`.
  1/1 mismatches
  x[1]: "515396079617"
  y[1]: "10157597659137"
  
  ── 25. Error: Valid public key returns a 200 with the correct fields populated. 
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getPayments_Account(valid_pk, domain = domain, data.table = FALSE) at testthat/test-getPayments_Account.R:9
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 26. Error: Valid account can also return a data.table. (@test-getPayments_Acc
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getPayments_Account(valid_pk, domain = domain) at testthat/test-getPayments_Account.R:18
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 27. Error: Parameters can be tuned. (@test-getPayments_Account.R#26)  ───────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getPayments_Account(valid_pk, domain = domain, data.table = FALSE, limit = 102, order = "desc") at testthat/test-getPayments_Account.R:26
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 28. Error: Valid public key returns a 200 with the correct fields populated. 
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getPayments_Ledger(valid_sequence, domain = domain, data.table = FALSE) at testthat/test-getPayments_Ledger.R:9
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 29. Error: Valid ledger can also return a data.table. (@test-getPayments_Ledg
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getPayments_Ledger(valid_sequence, domain = domain) at testthat/test-getPayments_Ledger.R:18
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 30. Error: Parameters can be tuned. (@test-getPayments_Ledger.R#28)  ────────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getPayments_Ledger(valid_sequence, domain = domain, data.table = FALSE, limit = 66, 
         order = "desc") at testthat/test-getPayments_Ledger.R:28
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 31. Error: Ids and hashes match on good hash. (@test-getTransactionDetail.R#1
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getTransactionDetail(good_hash, domain = domain) at testthat/test-getTransactionDetail.R:10
  2: .getRequest(request)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 32. Error: Valid public key returns a 200 with the correct fields populated. 
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getTransactions_Account(valid_pk, domain = domain, data.table = FALSE) at testthat/test-getTransactions_Account.R:9
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 33. Error: Valid account can also return a data.table. (@test-getTransactions
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getTransactions_Account(valid_pk, domain = domain) at testthat/test-getTransactions_Account.R:18
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 34. Error: Parameters can be tuned. (@test-getTransactions_Account.R#26)  ───
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getTransactions_Account(valid_pk, domain = domain, data.table = FALSE, limit = 199, 
         order = "desc") at testthat/test-getTransactions_Account.R:26
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 35. Failure: Error handling for bad public key. (@test-getTransactions_Accoun
  `getTransactions_Account(invalid_pk, domain = domain, data.table = FALSE)` threw an error with unexpected message.
  Expected match: "resource at the url requested was not found"
  Actual message: "invalid JSON input"
  
  ── 36. Error: Valid public key returns a 200 with the correct fields populated. 
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getTransactions_Ledger(valid_sequence, domain = domain, data.table = FALSE) at testthat/test-getTransactions_Ledger.R:9
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 37. Error: Valid ledger can also return a data.table. (@test-getTransactions_
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getTransactions_Ledger(valid_sequence, domain = domain) at testthat/test-getTransactions_Ledger.R:18
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 38. Error: Parameters can be tuned. (@test-getTransactions_Ledger.R#27)  ────
  [TYPE] - https://stellar.org/horizon-errors/not_found
  [TITLE] - Resource Missing
  [STATUS] - 404
  [DETAIL] - The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.
  1: getTransactions_Ledger(valid_sequence, domain = domain, data.table = FALSE, limit = 33, 
         order = "desc") at testthat/test-getTransactions_Ledger.R:27
  2: .getRequest(request, query_list)
  3: .checkResponse(response)
  4: stop(paste0("[", toupper(response_names), "] - ", response, collapse = "\n"))
  
  ── 39. Failure: Horizon request with bad address returns an appropriate stop mes
  `.getRequest(url_bad)` did not throw an error.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 201 SKIPPED: 0 FAILED: 39
  1. Error: (unknown) (@test-Account.R#6) 
  2. Error: The method to retrieve effects, transactions etc can be called successfully by the Ledger object. (@test-Ledger.R#34) 
  3. Error: (unknown) (@test-Transaction.R#11) 
  4. Error: Valid account returns a 200 response with the expected fields. (@test-getAccountDetail.R#7) 
  5. Failure: Invalid accounts are handled appropriately. (@test-getAccountDetail.R#18) 
  6. Failure: The first 20 assets from the network can be pulled. (@test-getAssets.R#12) 
  7. Failure: The first 20 effects from the network can be pulled. (@test-getEffects.R#12) 
  8. Failure: List object can be returned instead of a data.table. (@test-getEffects.R#23) 
  9. Error: Valid public key returns a 200 with the correct fields populated. (@test-getEffects_Account.R#9) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted