Fix build break
authorNicholas Ormrod <njormrod@fb.com>
Thu, 20 Nov 2014 19:06:39 +0000 (11:06 -0800)
committerDave Watson <davejwatson@fb.com>
Thu, 11 Dec 2014 15:58:19 +0000 (07:58 -0800)
Summary: Diff that had @override-unit-failures broke the build

Test Plan: fbconfig -r folly && fbmake dbg && fbmake runtests

Reviewed By: robbert@fb.com

Subscribers: sdwilsh, njormrod, folly-diffs@

FB internal diff: D1694388

Tasks: 5662947

Signature: t1:1694388:1416510278:d50f4896814a34d73d55be292961f5ecd74b1bb4

Blame Revision: D1680735

folly/io/async/test/HHWheelTimerTest.cpp

index e045255984b4b7342c5723d2a4bee31fc3d04b4a..286d89153ace8968fa65ce6584a213e1eecbc8d8 100644 (file)
@@ -96,32 +96,6 @@ TEST(HHWheelTimerTest, FireOnce) {
   T_CHECK_TIMEOUT(start, end, milliseconds(10));
 }
 
-/*
- * Test scheduling a timeout from another timeout callback.
- */
-BOOST_AUTO_TEST_CASE(CallbackSchedulingTimeout) {
-  TEventBase eventBase;
-  StackWheelTimer t(&eventBase, milliseconds(10));
-  const HHWheelTimer::Callback* nullCallback = nullptr;
-
-  TestTimeout t1;
-  // Delayed to simulate the steady_clock counter lagging
-  TestTimeoutDelayed t2;
-
-  t.scheduleTimeout(&t1, milliseconds(500));
-  t1.fn = [&] { t.scheduleTimeout(&t2, milliseconds(1)); };
-  // If t is in an inconsistent state, detachEventBase should fail.
-  t2.fn = [&] { t.detachEventBase(); };
-
-  BOOST_REQUIRE_EQUAL(t.count(), 1);
-
-  eventBase.loop();
-
-  BOOST_REQUIRE_EQUAL(t.count(), 0);
-  BOOST_REQUIRE_EQUAL(t1.timestamps.size(), 1);
-  BOOST_REQUIRE_EQUAL(t2.timestamps.size(), 1);
-}
-
 /*
  * Test cancelling a timeout when it is scheduled to be fired right away.
  */