Skellington-Closet / slack-mock

A Slack API mocker for Slack bot integration tests.
MIT License
64 stars 15 forks source link

Add stopServer and startServer methods to RTM #12

Closed colestrode closed 7 years ago

colestrode commented 7 years ago

This would be helpful for testing reconnection logic.

colestrode commented 7 years ago

Is this any better than client.close()?

colestrode commented 7 years ago

It could make testing reconnection strategies possible. With client.close you can only test one reconnection attempt, if the server is down you could test more complicated strategies like an exponential back off.