Skip to content

Commit e5a56fd

Browse files
committed
relax the tolerance on new unit test
1 parent 8bbdd09 commit e5a56fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-ggplot-lines.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test_that("Milliseconds are preserved with dynamic ticks", {
5151
j <- plotly_json(p, jsonedit = FALSE)
5252
t2 <- jsonlite::fromJSON(j)$data$x[[1]] %>%
5353
as.POSIXct(format = "%Y-%m-%d %H:%M:%OS")
54-
expect_equal(as.numeric(mean(diff(t2))), 0.1)
54+
expect_equal(as.numeric(mean(diff(t2))), 0.1, tolerance = 0.01)
5555
expect_doppelganger_built(p, "line-milliseconds")
5656
})
5757

0 commit comments

Comments
 (0)