Running ‘testthat.R’ [6s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(websocket)
  > 
  > test_check("websocket")
  [2020-02-01 10:00:38] [info] Error getting remote endpoint: asio.system:9 (Bad file number)
  [2020-02-01 10:00:38] [info] asio async_shutdown error: asio.system:9 (Bad file number)
  [2020-02-01 10:00:38] [error] handle_connect error: Timer Expired
  ── 1. Failure: small maxMessageSizes break simple connections (@test-client.R#68
  ws$readyState() not equivalent to 1L.
  1/1 mismatches
  [1] 3 - 1 == 2
  
  ── 2. Failure: small maxMessageSizes break simple connections (@test-client.R#69
  `state` not identical to "open".
  1/1 mismatches
  x[1]: "failed"
  y[1]: "open"
  
  ── 3. Error: small maxMessageSizes break simple connections (@test-client.R#71) 
  invalid state
  Backtrace:
   1. ws$send("hello")
   2. websocket:::wsSend(private$wsObj, msg)
  
  [2020-02-01 10:00:44] [info] Error getting remote endpoint: asio.system:9 (Bad file number)
  [2020-02-01 10:00:44] [info] asio async_shutdown error: asio.system:9 (Bad file number)
  [2020-02-01 10:00:44] [error] handle_connect error: Timer Expired
  ── 4. Failure: Basic websocket communication (@test-client.R#146)  ─────────────
  ws$readyState() not equivalent to 1L.
  1/1 mismatches
  [1] 3 - 1 == 2
  
  ── 5. Failure: Basic websocket communication (@test-client.R#146)  ─────────────
  `state` not identical to "open".
  1/1 mismatches
  x[1]: "failed"
  y[1]: "open"
  
  ── 6. Error: Basic websocket communication (@test-client.R#146)  ───────────────
  invalid state
  Backtrace:
   1. websocket:::check_ws("ws://echo.websocket.org/")
   2. ws$send("hello")
   3. websocket:::wsSend(private$wsObj, msg)
  
  [2020-02-01 10:00:55] [info] Error getting remote endpoint: asio.system:9 (Bad file number)
  [2020-02-01 10:00:55] [info] asio async_shutdown error: asio.system:9 (Bad file number)
  [2020-02-01 10:00:55] [error] handle_connect error: Timer Expired
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 20 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 6 ]
  1. Failure: small maxMessageSizes break simple connections (@test-client.R#68) 
  2. Failure: small maxMessageSizes break simple connections (@test-client.R#69) 
  3. Error: small maxMessageSizes break simple connections (@test-client.R#71) 
  4. Failure: Basic websocket communication (@test-client.R#146) 
  5. Failure: Basic websocket communication (@test-client.R#146) 
  6. Error: Basic websocket communication (@test-client.R#146) 
  
  Error: testthat unit tests failed
  Execution halted