Commit be319ae4 authored by Misha Shneerson's avatar Misha Shneerson Committed by Facebook GitHub Bot

fix a unit test

Differential Revision: D31641668

fbshipit-source-id: a733dbd2dc4e3f20e82d75514ded1a51788d378f
parent d06843a4
......@@ -46,8 +46,9 @@ class DeadlockDetectorFactoryMock : public DeadlockDetectorFactory {
fmt::format("TestPool:{}", folly::getOSThreadID());
EXPECT_EQ(expectedName, name);
name_ = name;
auto retval = std::make_unique<DeadlockDetectorMock>(counter_);
baton.post();
return std::make_unique<DeadlockDetectorMock>(counter_);
return retval;
}
int32_t getCounter() { return counter_->load(); }
......
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