Skip to content

Commit

Permalink
soft test for SWC url
Browse files Browse the repository at this point in the history
* this sometimes isn't available
* I don't think tests should fail when this happens
  • Loading branch information
jefferis committed Oct 14, 2024
1 parent b242f3a commit 2c2dcd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-neuron-io.R
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,9 @@ test_that("we can write neuron to swc file",{

#Check if the URL exists
if(nzchar(Sys.getenv("NAT_INTERNET_TESTS"))) {
expect_true(url_ok(swc_url))}

if(!url_ok(swc_url))
warning("Unable to access swc URL: ", swc_url)
}

expect_equal(write.neuron(y, dir=td, format='swc', file='rhubarb'),
file.path(td,'rhubarb.swc'))
Expand Down

0 comments on commit 2c2dcd1

Please sign in to comment.