Fix test for corking
authorSubodh Iyengar <subodh@fb.com>
Fri, 27 May 2016 17:36:48 +0000 (10:36 -0700)
committerFacebook Github Bot 9 <facebook-github-bot-9-bot@fb.com>
Fri, 27 May 2016 17:38:25 +0000 (10:38 -0700)
Summary:
Min rto is now 50ms, so change the
test accordingly

Reviewed By: w-o-o

Differential Revision: D3357140

fbshipit-source-id: 5a807fabc1a3c216a5120b8eb4930e5c1eb52b7a

folly/io/async/test/AsyncSocketTest2.cpp

index d77654453b4abc29867c004df5b9a3e31e2a3d42..4eecf3a68b6440f7b2afe84951f5e96acca45163 100644 (file)
@@ -1155,7 +1155,7 @@ TEST(AsyncSocketTest, WriteIOBufCorked) {
   write2.scheduleTimeout(100);
   WriteCallback wcb3;
   DelayedWrite write3(socket, std::move(buf3), &wcb3, false, true);
-  write3.scheduleTimeout(200);
+  write3.scheduleTimeout(140);
 
   evb.loop();
   CHECK_EQ(ccb.state, STATE_SUCCEEDED);