use a shorter retry for testing.
create a function to calculate a sane retry interval.