network
network copied to clipboard
test(dht): Test WebSocket client recovery
Summary
Test the WebSocket client recovery in 3 scenarios:
- Normal hiccup where the WebSocket connection closes randomly between sending messages.
- Pre-handshake failure where the WebSocket connection closes right after getting up.
- Pre-handshake failure where the WebSocket connection fails to get up at first attempt.
The aim is to make sure further messages are capable of reestablishing the lost connection.
Will fix that validation step shortly!
The new tests are green but it looks like other things "dht" do fail now.
Moved it to unit tests.