From 7b244f89a6480ec9112a2f1d92059190481a6366 Mon Sep 17 00:00:00 2001 From: David Gohel Date: Thu, 5 Jan 2023 23:11:07 +0100 Subject: [PATCH] tests: increase tolerance (bc of mac) --- tests/testthat/test-images.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-images.R b/tests/testthat/test-images.R index c3d2266a..48242e42 100644 --- a/tests/testthat/test-images.R +++ b/tests/testthat/test-images.R @@ -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) })