11test_that(" AcqFunctionStochasticCB works in defaults" , {
22 skip_on_cran()
33 skip_if_not_installed(" rush" )
4+ skip_if_not(redis_available())
45 flush_redis()
56
67 rush :: rush_plan(n_workers = 1L )
@@ -27,6 +28,7 @@ test_that("AcqFunctionStochasticCB works in defaults", {
2728test_that(" AcqFunctionStochasticCB works with uniform sampling" , {
2829 skip_on_cran()
2930 skip_if_not_installed(" rush" )
31+ skip_if_not(redis_available())
3032 flush_redis()
3133
3234 rush :: rush_plan(n_workers = 2L )
@@ -54,6 +56,7 @@ test_that("AcqFunctionStochasticCB works with uniform sampling", {
5456test_that(" AcqFunctionStochasticCB works with exponential sampling" , {
5557 skip_on_cran()
5658 skip_if_not_installed(" rush" )
59+ skip_if_not(redis_available())
5760 flush_redis()
5861
5962 rush :: rush_plan(n_workers = 2L )
@@ -82,6 +85,7 @@ test_that("AcqFunctionStochasticCB works with exponential sampling", {
8285test_that(" AcqFunctionStochasticCB works with lambda decay" , {
8386 skip_on_cran()
8487 skip_if_not_installed(" rush" )
88+ skip_if_not(redis_available())
8589 flush_redis()
8690
8791 rush :: rush_plan(n_workers = 1L )
@@ -110,6 +114,7 @@ test_that("AcqFunctionStochasticCB works with lambda decay", {
110114test_that(" AcqFunctionStochasticCB works with periodic lambda decay" , {
111115 skip_on_cran()
112116 skip_if_not_installed(" rush" )
117+ skip_if_not(redis_available())
113118 flush_redis()
114119
115120 rush :: rush_plan(n_workers = 1L )
0 commit comments