lager
lager copied to clipboard
Occasional test failure on Fedora Rawhide
Greetings!
I've been noticing an occasional test fail on Fedora Rawhide. Excerpt from the log:
lager_test_backend: async_threshold_test_ (async threshold works)...*failed*
in function lager_test_backend:'-async_threshold_test_/0-fun-9-'/0 (test/lager_test_backend.erl, line 1766)
in call from lager_test_backend:'-async_threshold_test_/0-fun-10-'/0 (test/lager_test_backend.erl, line 1766)
**error:{assertEqual,[{module,lager_test_backend},
{line,1766},
{expression,"lager_config : get ( async )"},
{expected,true},
{value,false}]}
output:<<"">>
I am able to get it to pass by running it a few times. This is with the following dependency versions:
erlang-20.3.8.2 erlang-goldrush-0.2.0-2.fc29.noarch erlang-rebar-2.6.4-6.fc28.x86_64
Hey, thanks for the issue - yes this test has historically been a big race condition pain in the butt. That's why it "sometimes" passes and "sometimes" fails. We have attempted to generalize it a bit in the past and it seemed to be pretty stable for a while but it again needs some attention.
See also #370