Skip to content

fix: Interval calculation for exponential reconnect#33

Merged
Imgkl merged 6 commits intoImgkl:pre-releasefrom
Peetee06:fix/exponential-interval-calculations
Nov 24, 2024
Merged

fix: Interval calculation for exponential reconnect#33
Imgkl merged 6 commits intoImgkl:pre-releasefrom
Peetee06:fix/exponential-interval-calculations

Conversation

@Peetee06
Copy link
Contributor

This PR adds some initial tests for the client.

During implementation I found a bug in the calculation of the exponential reconnect interval. It didn't start with the initial value but rather the double of that.

This also adds dependencies:

  • mockito for mocking
  • build_runner for mockito mocks generation
  • test for test APIs
  • fake_async to have control over passage of time in tests while keeping them fast

@Peetee06 Peetee06 force-pushed the fix/exponential-interval-calculations branch from b378e53 to a401273 Compare November 22, 2024 15:16
@Peetee06 Peetee06 changed the base branch from main to pre-release November 22, 2024 15:16
@Peetee06 Peetee06 mentioned this pull request Nov 22, 2024
@Imgkl Imgkl merged commit 8cfffb7 into Imgkl:pre-release Nov 24, 2024
Imgkl pushed a commit that referenced this pull request Dec 11, 2024
* fix: Interval calculation for exponential reconnect

* test: Add tests for multipart requests

* ref: Remove unnecessary async keyword

* test: Add tests for headers

* test: Add tests for correctly passing Url

* test: Add tests for get and post method
Imgkl pushed a commit that referenced this pull request Dec 11, 2024
* fix: Interval calculation for exponential reconnect

* test: Add tests for multipart requests

* ref: Remove unnecessary async keyword

* test: Add tests for headers

* test: Add tests for correctly passing Url

* test: Add tests for get and post method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants