Skip to content

Commit

Permalink
remove withr calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ncborcherding committed Nov 4, 2024
1 parent 6f7c771 commit 7b4214a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/test-clonalCluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ test_that("clonalCluster works", {

test_obj <- getTestCombinedSeuratObj()
combined <- getCombined()
withr::local_seed(42)

set.seed(42)
expect_equal(
clonalCluster(combined[[1]],
chain = "TRB",
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-getContigDoublets.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ getTestBcrListNoDoublets <- function() {
}

getTestBcrListWithDoublets <- function(doubletsPerSample, seed = 42) {
if (!is.null(seed)) withr::local_seed(seed)
if (!is.null(seed)) set.seed(seed)
purrr:::map2(
getTestBcrListNoDoublets(), getTestTcrList(),
makeRandomBcrBarcodesMatchTcr,
Expand Down

0 comments on commit 7b4214a

Please sign in to comment.