tests/testthat/test-retry.r

context("Exponential backoff with retry")

test_that("retry generates error with simple example designed to fail", {
  expect_error(retry(log("a"), silent=TRUE, max_attempts=3))
})
ramhiser/pocketknife documentation built on May 26, 2019, 10:11 p.m.