def delay(self, n, start_time):
    if (n > self.max_retries or
        (n > self.min_retries and
         time.time() - start_time > self.max_retry_period)):
      return -1
    return min(
        math.pow(self.backoff_factor, n-1) * self.initial_delay,
        self.max_delay)
A successful unsubscription should return an empty response.
dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/cloudstorage/api_utils.py/RetryParams.delay--crossover with--dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_pubsub.py/PubSubServiceTest.test_on_unsubscribe