Skip to content

Commit

Permalink
change a default
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jan 9, 2025
1 parent 1b646e3 commit 918c939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/tar_config_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ tar_config_get_project <- function(name, yaml) {
seconds_meta_append = yaml$seconds_meta_append %|||% 0,
seconds_meta_upload = yaml$seconds_meta_upload %|||% 15,
seconds_reporter = yaml$seconds_reporter %|||% 0,
seconds_reporter_outdated = yaml$seconds_reporter_outdated %|||% 0.25,
seconds_reporter_outdated = yaml$seconds_reporter_outdated %|||% 1,
seconds_interval = yaml$seconds_interval,
shortcut = yaml$shortcut %|||% FALSE,
store = yaml$store %|||% path_store_default(),
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-tar_config_set.R
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ tar_test("tar_config_set() with seconds_reporter", {
tar_test("tar_config_set() with seconds_reporter_outdated", {
skip_cran()
expect_false(file.exists("_targets.yaml"))
expect_equal(tar_config_get("seconds_reporter_outdated"), 0.25)
expect_equal(tar_config_get("seconds_reporter_outdated"), 1)
path <- tempfile()
tar_config_set(seconds_reporter_outdated = 10)
expect_equal(tar_config_get("seconds_reporter_outdated"), 10)
Expand All @@ -234,7 +234,7 @@ tar_test("tar_config_set() with seconds_reporter_outdated", {
expect_equal(tar_config_get("seconds_reporter_outdated"), 10)
expect_true(file.exists("_targets.yaml"))
unlink("_targets.yaml")
expect_equal(tar_config_get("seconds_reporter_outdated"), 0.25)
expect_equal(tar_config_get("seconds_reporter_outdated"), 1)
})

tar_test("tar_config_set() with seconds_interval", {
Expand Down

0 comments on commit 918c939

Please sign in to comment.