-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated timeout
values; Add support for $new(timeout=)
; Drop CI support for $new(load_timeout=)
; Add option and envvar support for $new(load_timeout=, timeout=)
#263
Conversation
I'm thinking we should scrap the timeout methods entirely and just make the startup time 10s and all other timeouts 4s. The timeout defaults could be The Then there's no confusion about CI... which value has been set... why the method name is about timeout, but arguments are about step or stepsize which doesn't immediately mean anything about timeouts. Everything is just straight forward. Here's the timeout value. |
Original PR from I think the only motivation was for GHA to be able to load the shiny apps without having to set any parameters. I think I was wrong to take that motivation for all timeout values within the package |
Moving forward with something like # Definition could be
app1 <- AppDriver$new(
load_timeout = getOption("shinytest2.load_timeout", 10 * 1000),
timeout = getOption("shinytest2.timeout", 4 * 1000)
)
# Definition could be
app1$run_js(timeout = missing_arg())
# Where
timeout <- rlang::maybe_missing(timeout, private$timeout)
|
For this motivation it might be worth adding an envvar lookup to the default value resolution, e.g. options → envvar → default value, since it's a lot easier to set the envvar in CI. |
$get_timeout(steps=)
, $set_timeout(stepsize=)
, and $new(timeout_stepsize=)
timeout
values; Add support for $new(timeout=)
; Drop CI support for $new(load_timeout=)
; Add envvar support for $new(load_timeout=, timeout=)
timeout
values; Add support for $new(timeout=)
; Drop CI support for $new(load_timeout=)
; Add envvar support for $new(load_timeout=, timeout=)
timeout
values; Add support for $new(timeout=)
; Drop CI support for $new(load_timeout=)
; Add option and envvar support for $new(load_timeout=, timeout=)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! ⏲️ ⏳
Fixes #213