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

Appearance settings

Commit e5a56fd

Browse filesBrowse files
committed
relax the tolerance on new unit test
1 parent 8bbdd09 commit e5a56fd
Copy full SHA for e5a56fd

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎tests/testthat/test-ggplot-lines.R

Copy file name to clipboardExpand all lines: tests/testthat/test-ggplot-lines.R
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.