facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.05k stars 539 forks source link

UDPClientServerTest Fails randomly #120

Closed shacharoo closed 1 month ago

shacharoo commented 6 years ago

I've just cloned the repo (master branch, commit f3c315fe62519b05aad0a2e372de0f6f46e89ca6), ran the ctest and noticed that this test is failing once in every few runs. Running ./bin/BootstrapTest --gtest_filter=Bootstrap.UDPClientServerTest --gtest_repeat=1000 | grep "listed below" | wc -l a few times tells me that it fails around 10% of the times. My machine is an ubuntu 16.04.3 VM.

Trying to figure this one out now :)

armarti commented 4 years ago

This has been a real pain for me, and I can't modify the script that actually runs the tests, so learning that I could set the environment variable GTEST_FILTER="-Bootstrap.UDPClientServerTest" helped a lot.

In case anyone at FB gets assigned this issue, my specs:

I haven't dug around in the codebase to see what the test fixtures or AsyncUDPServerSocketFactory or using but maybe it depends on something that's spuriously available in a docker container?