fix SingletonTest v2017.11.20.00
authorTianjiao Yin <ytj@fb.com>
Mon, 20 Nov 2017 02:51:19 +0000 (18:51 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 20 Nov 2017 02:58:46 +0000 (18:58 -0800)
commit79376dc7937cd38c10c0c632e3b39c6955ebd734
treec3a95ebbf7ca6f2ecf545f842897daab1ef1345c
parentdc91b004d384ba57887b38d4668845bffee0ba08
fix SingletonTest

Summary: There is no guarantee that this code will finish in 6 seconds (nor other threads will release singleton in 5 seconds), especially in ASAN mode. Though I don't have better idea, this diff will relax the condition in ASAN mode to make the unit-test less flaky.

Reviewed By: yfeldblum

Differential Revision: D6371692

fbshipit-source-id: 58dd15cc0b3273719314c8b323ba88ee47e8ff61
folly/test/SingletonTest.cpp