Skip to content

Commit

Permalink
tests: increase tolerance (bc of mac)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgohel committed Jan 5, 2023
1 parent c0af5d0 commit 7b244f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-images.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@ test_that("file size does not inflate with identical images", {
doc <- body_remove(doc)
doc <- body_add_img(x = doc, src = img.file, height = 1.06, width = 1.39 )
file2 <- print(doc, target = tempfile(fileext = ".docx"))
expect_equal(file.size(file1), file.size(file2))
expect_equal(file.size(file1), file.size(file2), tolerance = 10)
})

0 comments on commit 7b244f8

Please sign in to comment.