Skip to content

Commit

Permalink
Merge pull request #228 from rOpenGov/development
Browse files Browse the repository at this point in the history
Limit touch API to 10 seconds
  • Loading branch information
MansMeg authored Jul 7, 2021
2 parents 11546f8 + a2a8381 commit df69a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests_bash/pxweb.R
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ for(i in seq_along(api_paths)){
next
}
cat(api_paths[i], "\n")
touch_results[[i]] <- try(suppressWarnings(pxweb_test_api(url = api_paths[i], test_type = "touch", verbose = FALSE)), silent = TRUE)
touch_results[[i]] <- try(suppressWarnings(pxweb_test_api(url = api_paths[i], test_type = "touch", verbose = FALSE, time_limit = 10)), silent = TRUE)
if(inherits(touch_results[[i]], "try-error")){
errored[i] <- TRUE
}

0 comments on commit df69a38

Please sign in to comment.