Skip to content

Commit

Permalink
Fix CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Dec 11, 2023
1 parent 22037ea commit 7413f8a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions R/crew_aws_batch_monitor.R
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,7 @@ crew_class_aws_batch_monitor <- R6::R6Class(
fields <- c(
".job_queue",
".job_definition",
".log_group",
".region"
".log_group"
)
for (field in fields) {
crew::crew_assert(
Expand All @@ -395,14 +394,16 @@ crew_class_aws_batch_monitor <- R6::R6Class(
message = paste("invalid", field)
)
}
crew::crew_assert(
private$.endpoint %|||% "x",
is.character(.),
!anyNA(.),
length(.) == 1L,
nzchar(.),
message = "endpoint must be NULL or a character of length 1."
)
for (field in c(".endpoint", ".region")) {
crew::crew_assert(
private[[field]] %|||% "x",
is.character(.),
!anyNA(.),
length(.) == 1L,
nzchar(.),
message = paste(field, "must be NULL or a character of length 1.")
)
}
for (field in c(".config", ".credentials")) {
crew_assert(
private[[field]] %|||% list(),
Expand Down
2 changes: 1 addition & 1 deletion man/crew_launcher_aws_batch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7413f8a

Please sign in to comment.