eiri commented on issue #581: eunit couch_log_config_test failed with 
get_listener() found
URL: https://github.com/apache/couchdb/issues/581#issuecomment-307250710
 
 
   Just a note: it turned out there could be two causes for this failure 1) we 
are indeed checking event manager before it had chance to remove old handler 2) 
`couch_log_sup` is super fast and spawns and register new handler before we are 
pulling `which_handlers/1`, so we are getting _new_ handler. Just `sleep` would 
help in half of the cases, so I ended with something a bit more verbose. Hope 
it'll work more reliably. 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to