try to improve folly/io/async/test:async_test - AsyncSocketTest.Write
authorMarcin Pawlowski <mpawlowski@fb.com>
Sat, 12 Nov 2016 02:37:38 +0000 (18:37 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Sat, 12 Nov 2016 02:38:50 +0000 (18:38 -0800)
commit8c88eb0aee3389066d5c43d34148bee92e9ec773
tree9e3fc21b2844ef81c5f33b62ce320a5707ec0074
parent8e312461dae8862a799477c1c67e3bc1d2a65da6
try to improve folly/io/async/test:async_test - AsyncSocketTest.Write

Summary:
the test fails a lot as seen on the task.
To kill the connection in said test, we depeneded
on destructor, however this uses a delayed destruction
patter so I guess we did not destroy on time and
we were failing the tests.
I close socket explicitly. No idea if this misses
the point of whole test.

Reviewed By: yfeldblum

Differential Revision: D4171111

fbshipit-source-id: 01b8c97a04a2bcdfaeeea522ca8bcae343d6bb5d
folly/io/async/test/AsyncSocketTest2.cpp