Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(emayili)
  
  Attaching package: 'emayili'
  
  The following object is masked from 'package:graphics':
  
      text
  
  > 
  > test_check("emayili")
  ── 1. Failure: sends text message (@test-server.R#34)  ─────────────────────────
  `smtp(msg)` threw an error.
  Message: Failed to connect to mail.smtpbucket.com port 8025: Connection refused
  Class:   simpleError/error/condition
  Backtrace:
   1. testthat::expect_error(smtp(msg), NA)
   6. emayili:::smtp(msg)
   7. curl::curl_fetch_memory(url, handle = h)
  
  ── 2. Failure: sends message with insecure = TRUE (@test-server.R#38)  ─────────
  `smtp_insecure(msg)` threw an error.
  Message: Failed to connect to mail.smtpbucket.com port 8025: Connection refused
  Class:   simpleError/error/condition
  Backtrace:
   1. testthat::expect_error(smtp_insecure(msg), NA)
   6. emayili:::smtp_insecure(msg)
   7. curl::curl_fetch_memory(url, handle = h)
  
  ── 3. Failure: sends HTML message (@test-server.R#51)  ─────────────────────────
  `smtp(msg)` threw an error.
  Message: Failed to connect to mail.smtpbucket.com port 8025: Connection refused
  Class:   simpleError/error/condition
  Backtrace:
   1. testthat::expect_error(smtp(msg), NA)
   6. emayili:::smtp(msg)
   7. curl::curl_fetch_memory(url, handle = h)
  
  ── 4. Failure: sends message with text attachment (@test-server.R#58)  ─────────
  `smtp(msg)` threw an error.
  Message: Failed to connect to mail.smtpbucket.com port 8025: Connection refused
  Class:   simpleError/error/condition
  Backtrace:
   1. testthat::expect_error(smtp(msg), NA)
   6. emayili:::smtp(msg)
   7. curl::curl_fetch_memory(url, handle = h)
  
  ── 5. Failure: sends message with image attachment (@test-server.R#65)  ────────
  `smtp(msg)` threw an error.
  Message: Failed to connect to mail.smtpbucket.com port 8025: Connection refused
  Class:   simpleError/error/condition
  Backtrace:
   1. testthat::expect_error(smtp(msg), NA)
   6. emayili:::smtp(msg)
   7. curl::curl_fetch_memory(url, handle = h)
  
  ── 6. Failure: sends message with image attachment (using CID) (@test-server.R#7
  `smtp(msg)` threw an error.
  Message: Failed to connect to mail.smtpbucket.com port 8025: Connection refused
  Class:   simpleError/error/condition
  Backtrace:
   1. testthat::expect_error(smtp(msg), NA)
   6. emayili:::smtp(msg)
   7. curl::curl_fetch_memory(url, handle = h)
  
  ── 7. Error: sends with verbose output  ────────────────────────────────────────
  Failed to connect to mail.smtpbucket.com port 8025: Connection refused
  Backtrace:
   1. emayili:::smtp(msg, verbose = TRUE)
   2. curl::curl_fetch_memory(url, handle = h)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 31 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 7 ]
  1. Failure: sends text message (@test-server.R#34) 
  2. Failure: sends message with insecure = TRUE (@test-server.R#38) 
  3. Failure: sends HTML message (@test-server.R#51) 
  4. Failure: sends message with text attachment (@test-server.R#58) 
  5. Failure: sends message with image attachment (@test-server.R#65) 
  6. Failure: sends message with image attachment (using CID) (@test-server.R#73) 
  7. Error: sends with verbose output 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In for (n in impnames) if (!is.null(genImp <- impenv[[n]])) { :
    closing unused connection 5 (/tmp/RtmpXGlbtL/working_dir/RtmpI6FSGI/file15b3454fb64a)
  2: In for (i in 1:(k - 1L)) { :
    closing unused connection 9 (/tmp/RtmpXGlbtL/working_dir/RtmpI6FSGI/file15b365634ce6)
  3: In for (i in 1:(k - 1L)) { :
    closing unused connection 8 (/tmp/RtmpXGlbtL/working_dir/RtmpI6FSGI/file15b3251de092)
  4: In for (i in 1:(k - 1L)) { :
    closing unused connection 7 (/tmp/RtmpXGlbtL/working_dir/RtmpI6FSGI/file15b34e71febe)
  5: In for (i in 1:(k - 1L)) { :
    closing unused connection 6 (/tmp/RtmpXGlbtL/working_dir/RtmpI6FSGI/file15b3357d550d)
  6: In for (i in 1:(k - 1L)) { :
    closing unused connection 5 (/tmp/RtmpXGlbtL/working_dir/RtmpI6FSGI/file15b375bf60ec)
  Execution halted