Skip to content

Commit

Permalink
do not expect returns when shutting down server
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Oct 28, 2020
1 parent 0f38033 commit 8b3424a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/helper-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ respond <- function(client, method, params, timeout, allow_error = FALSE,
start_time <- Sys.time()
remaining <- timeout
client$deliver(client$request(method, params), callback = cb)
if (method == "shutdown") {
# do not expect the server returns anything
return(NULL)
}
while (!isTRUE(storage$done)) {
if (remaining < 0) {
fail("timeout when obtaining response")
Expand Down

0 comments on commit 8b3424a

Please sign in to comment.