resclient icon indicating copy to clipboard operation
resclient copied to clipboard

Resgate disconnect tests

Open jirenius opened this issue 5 years ago • 0 comments

Issue

Unit tests should be added to cover ResClient's behavior on unexpected disconnects.

Scope

The tests should describe unexpected disconnect, and test that:

  • it does nothing if no subscriptions exists and no requests are pending
  • it connects after an unexpected disconnect on first subscription
  • it connects after an unexpected disconnect on first call
  • it directly attempts to reconnect and resubscribe to existing subscriptions
  • it rejects pending requests with a system.connectionError error

jirenius avatar Dec 05 '19 10:12 jirenius