DataDog / java-dogstatsd-client

Java statsd client library
MIT License
176 stars 102 forks source link

Improve robustness of stream socket tests #240

Open vickenty opened 8 months ago

vickenty commented 8 months ago

Make the test more robust by waiting for the expected error state to be reached. "broken pipe" is the initial error sender gets when trying to write to the disconnected socket, but it can not be reliably observed due to lack of synchronization between the sender thread and the test body.