@@ -6,10 +6,11 @@ test_that ("testpkg and input errors", {
6
6
flist <- unzip (pkg , exdir = fs :: path_temp ())
7
7
path <- fs :: path_dir (flist [1 ])
8
8
9
- expect_error (githist (path , step_size = 1 : 2 ))
10
- expect_error (githist (path , step_size = " 1" ))
9
+ expect_error (githist (path , step_size = 1 : 2 , num_cores = 1L ))
10
+ expect_error (githist (path , step_size = " 1" , num_cores = 1L ))
11
11
12
- res <- githist (path )
12
+ res <- githist (path , num_cores = 1L )
13
+ fs :: dir_delete (path )
13
14
14
15
expect_type (res , " list" )
15
16
expect_length (res , 3L )
@@ -22,17 +23,17 @@ test_that ("githist parameters", {
22
23
flist <- unzip (pkg , exdir = fs :: path_temp ())
23
24
path <- fs :: path_dir (flist [1 ])
24
25
25
- res0 <- githist (path )
26
+ res0 <- githist (path , num_cores = 1L )
26
27
n0 <- vapply (res0 , nrow , integer (1L ))
27
28
fs :: dir_delete (path )
28
29
29
30
flist <- unzip (pkg , exdir = fs :: path_temp ())
30
- res1 <- githist (path , n = 2L )
31
+ res1 <- githist (path , n = 2L , num_cores = 1L )
31
32
n1 <- vapply (res1 , nrow , integer (1L ))
32
33
fs :: dir_delete (path )
33
34
34
35
flist <- unzip (pkg , exdir = fs :: path_temp ())
35
- res2 <- githist (path , n = 2L , step_size = 2L )
36
+ res2 <- githist (path , n = 2L , step_size = 2L , num_cores = 1L )
36
37
n2 <- vapply (res2 , nrow , integer (1L ))
37
38
fs :: dir_delete (path )
38
39
0 commit comments