Commit 136dd179 authored by Nicholas Ormrod's avatar Nicholas Ormrod Committed by Dave Watson

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
parent 1fbc2522
......@@ -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.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment