Skip to content

Commit 228162b

Browse files
authored
Merge pull request #145 from ropensci/less-stringent-tests
Less stringent tests
2 parents 7a5d127 + 73d7b2a commit 228162b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-oa_fetch.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ test_that("oa_fetch can combine (OR) more than 50 DOIs in a filter", {
209209
"data.frame"
210210
)
211211

212-
expect_equal(nrow(many_doi_results), length(valid_dois))
212+
expect_true(nrow(many_doi_results) >= length(valid_dois) - 5)
213213
})
214214

215215
test_that("oa_fetch can combine (OR) more than 50 ORCIDs in a filter", {
@@ -273,7 +273,7 @@ test_that("oa_fetch can combine (OR) more than 50 ORCIDs in a filter", {
273273

274274
expect_s3_class(many_orcid_results, "data.frame")
275275
# https://orcid.org/0000-0002-4147-892X no longer corresponds to two openalex id
276-
expect_true(nrow(many_orcid_results) >= length(valid_orcids))
276+
expect_true(nrow(many_orcid_results) >= length(valid_orcids) - 5)
277277
})
278278

279279
test_that("oa_random works", {

0 commit comments

Comments
 (0)