File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,16 @@ test_with_dir("retries", {
43
43
test_with_dir(" timouts" , {
44
44
scenario <- get_testing_scenario()
45
45
e <- eval(parse(text = scenario $ envir ))
46
- pl <- data.frame (target = " x" , command = " Sys.sleep(0.25)" )
46
+ # From R.utils examples and tests
47
+ foo <- function () {
48
+ print(" Tic" )
49
+ for (kk in 1 : 20 ) {
50
+ print(kk )
51
+ Sys.sleep(0.1 )
52
+ }
53
+ print(" Tac" )
54
+ }
55
+ pl <- data.frame (target = " x" , command = " foo()" )
47
56
expect_error(
48
57
tmp <- capture.output(capture.output(
49
58
make(
@@ -53,6 +62,7 @@ test_with_dir("timouts", {
53
62
timeout = 1e-3
54
63
), type = " message" ), type = " output" )
55
64
)
65
+ expect_false(cached(x ))
56
66
expect_error(
57
67
tmp <- capture.output(capture.output(
58
68
make(
@@ -63,6 +73,7 @@ test_with_dir("timouts", {
63
73
retries = 2
64
74
), type = " message" ), type = " output" )
65
75
)
76
+ expect_false(cached(x ))
66
77
pl <- workflow(x = 1 + 1 )
67
78
expect_silent(
68
79
tmp <- capture.output(make(
You can’t perform that action at this time.
0 commit comments