Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hauselin committed Jul 28, 2024
1 parent 5c543d7 commit 0feb06d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-test_connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ library(testthat)
library(ollamar)

test_that("test_connection function works", {
skip_if_not(test_connection()$status_code == 200, "Ollama server not available")

result <- test_connection()
expect_s3_class(result, "httr2_response")
expect_equal(result$status_code, 200)
Expand Down

0 comments on commit 0feb06d

Please sign in to comment.