R Under development (unstable) (2025-12-18 r89199 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard testthat setup for R packages. > # It runs all tests in the tests/testthat/ directory. > > library(testthat) > library(tinyshinyserver) > > test_check("tinyshinyserver") ERROR [2025-12-20 01:21:09] add_ws_connection called with NULL session_id or connection_info ERROR [2025-12-20 01:21:09] add_ws_connection called with NULL session_id or connection_info ERROR [2025-12-20 01:21:09] remove_ws_connection called with NULL session_id ERROR [2025-12-20 01:21:09] Connection count INCONSISTENCY for app1: cached=10, actual=2, diff=8 ERROR [2025-12-20 01:21:09] Connection count INCONSISTENCY for app1: cached=99, actual=1, diff=98 INFO [2025-12-20 01:21:09] Fixed connection count for app1: 99 -> 1 INFO [2025-12-20 01:21:09] Port assignments: INFO [2025-12-20 01:21:09] App 'testapp' -> port 4001 INFO [2025-12-20 01:21:09] Proxy -> port 4000 INFO [2025-12-20 01:21:09] Management -> port 4002 INFO [2025-12-20 01:21:09] Port assignments: INFO [2025-12-20 01:21:09] App 'testapp' -> port 5001 INFO [2025-12-20 01:21:09] Proxy -> port 3838 INFO [2025-12-20 01:21:09] Management -> port 3839 INFO [2025-12-20 01:21:09] Port assignments: INFO [2025-12-20 01:21:09] App 'app1' -> port 5001 INFO [2025-12-20 01:21:09] App 'app2' -> port 5002 INFO [2025-12-20 01:21:09] Proxy -> port 3838 INFO [2025-12-20 01:21:09] Management -> port 3839 INFO [2025-12-20 01:21:10] Port assignments: INFO [2025-12-20 01:21:10] App 'testapp' -> port 6001 INFO [2025-12-20 01:21:10] Proxy -> port 3838 INFO [2025-12-20 01:21:10] Management -> port 3839 INFO [2025-12-20 01:21:10] Port assignments: INFO [2025-12-20 01:21:10] App 'app1' -> port 5000 INFO [2025-12-20 01:21:10] App 'app2' -> port 5001 INFO [2025-12-20 01:21:10] App 'app3' -> port 5002 INFO [2025-12-20 01:21:10] Proxy -> port 3838 INFO [2025-12-20 01:21:10] Management -> port 3839 INFO [2025-12-20 01:21:10] Port assignments: INFO [2025-12-20 01:21:10] App 'app1' -> port 3840 INFO [2025-12-20 01:21:10] App 'app2' -> port 3841 INFO [2025-12-20 01:21:10] Proxy -> port 3838 INFO [2025-12-20 01:21:10] Management -> port 3839 INFO [2025-12-20 01:21:10] Port assignments: INFO [2025-12-20 01:21:10] App 'app1' -> port 5001 INFO [2025-12-20 01:21:10] App 'app2' -> port 5002 INFO [2025-12-20 01:21:10] Proxy -> port 3838 INFO [2025-12-20 01:21:10] Management -> port 3839 INFO [2025-12-20 01:21:10] Port assignments: INFO [2025-12-20 01:21:10] App 'app1' -> port 5000 INFO [2025-12-20 01:21:10] App 'app2' -> port 5001 INFO [2025-12-20 01:21:10] Proxy -> port 3838 INFO [2025-12-20 01:21:10] Management -> port 3839 ERROR [2025-12-20 01:21:10] add_ws_connection called with NULL session_id or connection_info ERROR [2025-12-20 01:21:10] add_ws_connection called with NULL session_id or connection_info ERROR [2025-12-20 01:21:10] remove_ws_connection called with NULL session_id ERROR [2025-12-20 01:21:10] Connection count INCONSISTENCY for app1: cached=999, actual=2, diff=997 INFO [2025-12-20 01:21:10] Fixed connection count for app1: 999 -> 2 INFO [2025-12-20 01:21:10] Restarting app: myapp INFO [2025-12-20 01:21:15] Starting app myapp on port 3001 INFO [2025-12-20 01:21:15] App myapp process started, checking readiness asynchronously INFO [2025-12-20 01:21:15] Shutdown requested via management API ERROR [2025-12-20 01:21:15] Error generating management page: Template error ERROR [2025-12-20 01:21:16] Error getting app status for management: Database connection error INFO [2025-12-20 01:21:16] Restarting app: app1 INFO [2025-12-20 01:21:16] Starting app app1 on port 3001 INFO [2025-12-20 01:21:16] Detected traditional Shiny app for app1 INFO [2025-12-20 01:21:16] App app1 process started, checking readiness asynchronously INFO [2025-12-20 01:21:16] Restarting app: app1 ERROR [2025-12-20 01:21:16] Failed to restart app app1: Kill failed INFO [2025-12-20 01:21:16] Shutdown requested via management API INFO [2025-12-20 01:21:16] Shutdown requested via management API ERROR [2025-12-20 01:21:16] Error creating shutdown flag: cannot open the connection INFO [2025-12-20 01:21:16] Stopping app: nonexistent INFO [2025-12-20 01:21:16] Stopping app: app1 INFO [2025-12-20 01:21:16] Successfully stopped app app1 INFO [2025-12-20 01:21:16] Stopping app: app1 ERROR [2025-12-20 01:21:16] Cannot stop unknown app: nonexistent INFO [2025-12-20 01:21:16] Immediately stopping non-resident app app1 (no active connections) INFO [2025-12-20 01:21:16] Stopping app: app1 INFO [2025-12-20 01:21:16] Successfully stopped app app1 INFO [2025-12-20 01:21:16] Restarting app: app1 INFO [2025-12-20 01:21:16] Starting app app1 on port 3001 INFO [2025-12-20 01:21:16] Detected traditional Shiny app for app1 INFO [2025-12-20 01:21:16] App app1 process started, checking readiness asynchronously INFO [2025-12-20 01:21:16] Restarting app: app1 ERROR [2025-12-20 01:21:16] Failed to restart app app1: Simulated kill error ERROR [2025-12-20 01:21:16] Cannot start app on demand: nonexistent not found in configuration INFO [2025-12-20 01:21:16] Starting app app1 on demand INFO [2025-12-20 01:21:16] Starting app app1 on port 3001 INFO [2025-12-20 01:21:16] Detected traditional Shiny app for app1 INFO [2025-12-20 01:21:16] App app1 process started, checking readiness asynchronously INFO [2025-12-20 01:21:16] Successfully initiated startup for app app1 on demand INFO [2025-12-20 01:21:17] Cleaning stale backend connection: stale_backend, last activity: 2025-12-20 00:46:17 INFO [2025-12-20 01:21:17] Cleaning stale client connection: stale, app: app1, last activity: 2025-12-20 00:46:17 INFO [2025-12-20 01:21:17] Cleaned up 2 stale connections INFO [2025-12-20 01:21:17] Cleaning dead process for app dead_app INFO [2025-12-20 01:21:17] Cleaned up 1 dead processes INFO [2025-12-20 01:21:17] Cleaning dead process for app dead_app INFO [2025-12-20 01:21:17] Cleaned up 1 dead processes INFO [2025-12-20 01:21:17] Stopping all applications... INFO [2025-12-20 01:21:17] Stopping app: app1 INFO [2025-12-20 01:21:17] Successfully stopped app app1 INFO [2025-12-20 01:21:17] Stopping app: app2 INFO [2025-12-20 01:21:17] Successfully stopped app app2 INFO [2025-12-20 01:21:17] All applications stopped INFO [2025-12-20 01:21:17] Stopping all applications... INFO [2025-12-20 01:21:17] All applications stopped INFO [2025-12-20 01:21:17] Stopping all applications... INFO [2025-12-20 01:21:17] All applications stopped ERROR [2025-12-20 01:21:17] App app1 died, restarting INFO [2025-12-20 01:21:17] Starting app app1 on port 3001 INFO [2025-12-20 01:21:17] Detected traditional Shiny app for app1 INFO [2025-12-20 01:21:17] App app1 process started, checking readiness asynchronously ERROR [2025-12-20 01:21:17] App app1 died, restarting INFO [2025-12-20 01:21:17] Non-resident app app1 died, will start on next request INFO [2025-12-20 01:21:17] Resident app app1 not running, starting INFO [2025-12-20 01:21:17] Starting app app1 on port 3001 INFO [2025-12-20 01:21:17] Detected traditional Shiny app for app1 INFO [2025-12-20 01:21:17] App app1 process started, checking readiness asynchronously ERROR [2025-12-20 01:21:17] App app1 process died during startup INFO [2025-12-20 01:21:17] App app1 is ready on port 3001 (attempt 1) ERROR [2025-12-20 01:21:17] App app1 failed to become ready after 10 attempts ERROR [2025-12-20 01:21:17] Error generating landing page: Template error INFO [2025-12-20 01:21:18] Starting non-resident app myapp on demand for HTTP request WARN [2025-12-20 01:21:19] Port 3001 not available for app myapp but app not in startup state INFO [2025-12-20 01:21:19] Starting non-resident app myapp on demand for HTTP request INFO [2025-12-20 01:21:21] App testapp not ready after 2s grace period, returning 503 ERROR [2025-12-20 01:21:21] App testapp startup timed out WARN [2025-12-20 01:21:21] Port 3001 not available for app testapp but app not in startup state WARN [2025-12-20 01:21:21] Port 3001 not available for app testapp but app not in startup state [ FAIL 0 | WARN 2 | SKIP 1 | PASS 853 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-utils.R:141:3' [ FAIL 0 | WARN 2 | SKIP 1 | PASS 853 ] > > proc.time() user system elapsed 6.56 1.67 17.98