Skip to content

Improve accept exception handling in unit tests (CORALCOOL-3082)

Andy Salnikov requested to merge salnikov/coral:tickets/CORALCOOL-3082 into master

Socket accept() method raises NonFatalSocketException error when there are no connection requests pending. Unit tests call connect() and accept() in the same thread and they expect that exception is not raised. Apparently that is not always true and in some conditions exception is still raised. Correct thing in this case is to retry accept() call, this patch adds this logic to unit tests.

Merge request reports