Skip to content

Commit

Permalink
ci print debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JsLth committed Sep 19, 2024
1 parent bea8b7a commit bafbbac
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/testthat/test-jar.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
skip_on_ci()

test_that("properly stops without java", {
expect_error(with_mocked_bindings(
has_util = function(...) FALSE,
Expand All @@ -15,23 +13,35 @@ ors <- local_ors_instance(type = "jar", verbose = FALSE)

test_that("jar setup works", {
# service not started - should return false
print(1)
expect_false(ors$is_init())
print(2)
expect_false(ors$is_running())
print(3)
expect_false(ors$is_ready())
print(4)
expect_true(ors$is_mounted())
print(5)

# check if service is startable
ors$set_extract(file = system.file("setup/monaco.pbf", package = "rors"))
print(6)
ors$set_port()
print(7)
ors$up()
print(8)

# service is started - should return true
expect_true(ors$is_init())
print(9)
expect_true(ors$is_running())
print(10)
expect_true(ors$is_ready())
print(11)

# stop
ors$stop()
print(12)
expect_false(ors$is_running())
expect_true(ors$is_init())
})

0 comments on commit bafbbac

Please sign in to comment.