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

test reconnection logic in WebSocketProvider #14

Open
heckj opened this issue Apr 9, 2024 · 0 comments
Open

test reconnection logic in WebSocketProvider #14

heckj opened this issue Apr 9, 2024 · 0 comments
Labels
testing testing of existing code or functionality

Comments

@heckj
Copy link
Collaborator

heckj commented Apr 9, 2024

I just cobbled up a bunch of WebSocket related reconnect-on-error logic, including a backoff mechanism. However, there's not really anything easily set up to "fake" a websocket to allow me to test this outside of some sort of broader integration/live testing scenario.

Go through and see if the logic can be tweaked/updated to allow injecting a fake thing that creates a WebSocketTask equivalent (or something that smells and acts like one), and use it to add tests to verify that the various permutations all work as expected.

  • failed on receive()
  • failed on send()
  • corrupted messages
  • disconnect() terminating things correctly
@heckj heckj added the testing testing of existing code or functionality label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing testing of existing code or functionality
Projects
None yet
Development

No branches or pull requests

1 participant