Move some tests out of FOLLY_ALLOW_TFO ifdef.
authorKyle Nekritz <knekritz@fb.com>
Mon, 27 Feb 2017 23:00:11 +0000 (15:00 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 27 Feb 2017 23:06:01 +0000 (15:06 -0800)
Summary: I think this ended up encompassing more than intended.

Reviewed By: yfeldblum, maxgeorg

Differential Revision: D4622645

fbshipit-source-id: 26597098a479b85d6ecc64abef2ecc53637ee759

folly/io/async/test/AsyncSocketTest2.cpp

index bfde20c79ba9270e9156b7e9b793ae6ed7e7c48a..f532315153aaf2e6118aaf940204fc4544302c4e 100644 (file)
@@ -2797,6 +2797,8 @@ TEST(AsyncSocketTest, ConnectTFOWithBigData) {
   EXPECT_EQ(socket->getTFOFinished(), socket->getTFOSucceded());
 }
 
+#endif // FOLLY_ALLOW_TFO
+
 class MockEvbChangeCallback : public AsyncSocket::EvbChangeCallback {
  public:
   MOCK_METHOD1(evbAttached, void(AsyncSocket*));
@@ -2907,5 +2909,3 @@ TEST(AsyncSocketTest, ErrMessageCallback) {
   ASSERT_TRUE(errMsgCB.gotTimestamp_);
 }
 #endif // MSG_ERRQUEUE
-
-#endif