Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test of retry support #179

Merged
merged 11 commits into from Dec 10, 2022
Merged

Commits on Nov 30, 2022

  1. Add unit test

    Add unit test of retry policy.
    rafiramadhana committed Nov 30, 2022
    Copy the full SHA
    80d5544 View commit details
    Browse the repository at this point in the history
  2. Fix typo

    Update policy to be RetryAllErrors.
    
    Fix typo in comment.
    rafiramadhana committed Nov 30, 2022
    Copy the full SHA
    83ba686 View commit details
    Browse the repository at this point in the history
  3. Update unit test

    Add unit test of dont retry policy/temporary network error.
    
    Disable delay on retry unit test.
    rafiramadhana committed Nov 30, 2022
    Copy the full SHA
    6d02bbe View commit details
    Browse the repository at this point in the history
  4. Add unit test

    Add unit test of max retries and retry delay.
    rafiramadhana committed Nov 30, 2022
    Copy the full SHA
    396caac View commit details
    Browse the repository at this point in the history
  5. Fix linter error

    rafiramadhana committed Nov 30, 2022
    Copy the full SHA
    b02d5da View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2022

  1. Add unit test

    Add unit test of retry on HTTP Status OK.
    rafiramadhana committed Dec 8, 2022
    Copy the full SHA
    01af0a3 View commit details
    Browse the repository at this point in the history
  2. Update unit test

    Update mockClient.cb to have *http.Request.
    
    Add HTTP request body assertions.
    rafiramadhana committed Dec 8, 2022
    Copy the full SHA
    0cb3c64 View commit details
    Browse the repository at this point in the history
  3. Add sleepFn

    Add sleepFn to Request.
    rafiramadhana committed Dec 8, 2022
    Copy the full SHA
    e8ea1ca View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2022

  1. Copy the full SHA
    7479b28 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    2a8e1aa View commit details
    Browse the repository at this point in the history
  3. Add no-op sleepFn

    Add no-op sleepFn to remove unnecessary delay.
    rafiramadhana committed Dec 10, 2022
    Copy the full SHA
    1d97cd5 View commit details
    Browse the repository at this point in the history