Skip to content

Commit

Permalink
tests: remove rush load (#254)
Browse files Browse the repository at this point in the history
* tests: remove rush load

* chore: redis to pkgdown
  • Loading branch information
be-marc authored Sep 10, 2024
1 parent 2044acd commit 9eca4b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:

- uses: r-lib/actions/setup-r@v2

- uses: supercharge/[email protected]
with:
redis-version: 7

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/helper.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
library(rush)
library(checkmate)

# Simple 1D Function
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_ArchiveAsync.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ test_that("ArchiveAsync works with one point", {
skip_if_not_installed("rush")
flush_redis()

rush = RushWorker$new(network_id = "remote_network", remote = FALSE)
rush = rush::RushWorker$new(network_id = "remote_network", remote = FALSE)

archive = ArchiveAsync$new(
search_space = PS_2D,
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_OptimInstanceAsyncSingleCrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test_that("rush controller can be passed to OptimInstanceAsyncSingleCrit", {
skip_if_not_installed("rush")
flush_redis()

rush = rsh(network_id = "remote_network")
rush = rush::rsh(network_id = "remote_network")

instance = oi_async(
objective = OBJ_2D,
Expand Down Expand Up @@ -63,7 +63,7 @@ test_that("point evaluation works", {
flush_redis()

# evaluation takes place on the workers
rush = RushWorker$new("test", remote = FALSE)
rush = rush::RushWorker$new("test", remote = FALSE)
instance = oi_async(
objective = OBJ_2D,
search_space = PS_2D,
Expand Down

0 comments on commit 9eca4b7

Please sign in to comment.