From: Nicholas Ormrod Date: Thu, 20 Nov 2014 19:06:39 +0000 (-0800) Subject: Fix build break X-Git-Tag: v0.22.0~153 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=136dd179602836cef909daece84b427a2ad46c54 Fix build break 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 --- diff --git a/folly/io/async/test/HHWheelTimerTest.cpp b/folly/io/async/test/HHWheelTimerTest.cpp index e0452559..286d8915 100644 --- a/folly/io/async/test/HHWheelTimerTest.cpp +++ b/folly/io/async/test/HHWheelTimerTest.cpp @@ -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. */