Check the baton waits in the ScopedEventBaseThread tests
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 15 Dec 2016 09:37:21 +0000 (01:37 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 15 Dec 2016 09:48:00 +0000 (01:48 -0800)
commitb1cc55016a1f3863ff9232dd4dc83575d986e0bf
tree478043661277a5158d4691abd3d672ff97f38fad
parente3f67e10426465a302ab05cc05448f74ebc70e43
Check the baton waits in the ScopedEventBaseThread tests

Summary:
[Folly] Check the baton waits in the `ScopedEventBaseThread` tests.

Also:
* `Baton<T>::timed_wait` can take a `duration`, not just a `time_point`.
* Allow a bit more time for waiting, just in case the machine running the tests is under load.

Reviewed By: andriigrynenko

Differential Revision: D4330126

fbshipit-source-id: 55878577b1deeb260686647e5f22a81d6fb9e06d
folly/io/async/test/ScopedEventBaseThreadTest.cpp