[9.18] Make the test_send_timeout check more stable

Backport of MR !8168 (merged)

Closes #4139 (closed)

Edited by Michal Nowak

Merge request reports