Sha256: bf8361a55b8008f88736e956df0a6dd6c9d58c04882e4124cf86bc21cd8213ae
Contents?: true
Size: 462 Bytes
Versions: 49
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class TestExponentialBackoff < Minitest::Test def test_backoff backoff = Prefab::ExponentialBackoff.new(max_delay: 120) assert_equal 2, backoff.call assert_equal 4, backoff.call assert_equal 8, backoff.call assert_equal 16, backoff.call assert_equal 32, backoff.call assert_equal 64, backoff.call assert_equal 120, backoff.call assert_equal 120, backoff.call end end
Version data entries
49 entries across 49 versions & 1 rubygems