Skip to content

Commit

Permalink
Fix skip_if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Oct 10, 2024
1 parent 583f9a2 commit 05f93c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-runners.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test_that("if `path =` is given, msprime returns it back and saves a tree-sequen
})

test_that("SLiMgui does not start in an interactive session", {
skip_if(interactive())
skip_if(!interactive())
expect_error(slim(model, sequence_length = 1, recombination_rate = 0),
"SLiMgui can only be run from an interactive R session")
})
Expand Down

0 comments on commit 05f93c5

Please sign in to comment.