Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e5a56fd

Browse files
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /