s.test('with 0 retries', (assert) => {
    const stub = sinon.stub().returns(Promise.reject())
    backoff(10, 10, 0, stub)
      .then(() => assert.fail())
      .catch(() => {