-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
test_that("crew retries", { | ||
tar_script({ | ||
tar_option_set(controller = crew::crew_controller_local()) | ||
tar_target(x, { | ||
Sys.sleep(15) | ||
"completed despite retries" | ||
}) | ||
}) | ||
# Run each of the following interactively. | ||
# Terminate the crew worker (open htop, search "crew::crew_worker") | ||
# and observe the retries. | ||
tar_destroy() | ||
tar_make(reporter = "silent") | ||
expect_equal(tar_read(x), "completed despite retries") | ||
tar_destroy() | ||
tar_make(reporter = "verbose") | ||
expect_equal(tar_read(x), "completed despite retries") | ||
tar_destroy() | ||
tar_make(reporter = "verbose_positives") | ||
expect_equal(tar_read(x), "completed despite retries") | ||
tar_destroy() | ||
tar_make(reporter = "timestamp") | ||
expect_equal(tar_read(x), "completed despite retries") | ||
tar_destroy() | ||
tar_make(reporter = "timestamp_positives") | ||
expect_equal(tar_read(x), "completed despite retries") | ||
tar_destroy() | ||
tar_make(reporter = "summary") | ||
expect_equal(tar_read(x), "completed despite retries") | ||
tar_destroy() | ||
tar_make(reporter = "verbose") # Max out the retry quota on this last one. | ||
tar_destroy() | ||
}) |