Use simple exception_wrapper ctor in the Promise::setException test
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 22 Aug 2017 22:51:49 +0000 (15:51 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 22 Aug 2017 23:00:48 +0000 (16:00 -0700)
commit116ae4634a0287e35f378cb4c68c1ed7a48668ec
tree628859d92e101c6dcf56322773658a400a13688b
parent05db64e65b56f2940613006a9cdf4fbc3451547d
Use simple exception_wrapper ctor in the Promise::setException test

Summary:
[Folly] Use simple `exception_wrapper` ctor in the `Promise::setException` test.

And add a new case testing with `exception_ptr`.

Reviewed By: andrewjcg

Differential Revision: D5683035

fbshipit-source-id: e8276166dacbe09a9a745271d636db44c593058c
folly/futures/test/PromiseTest.cpp