Summary: fixed the one brought up in the task, and tweaked another that could theoretically cause problems
Test Plan: ran, though I have not been able to repro the
Reviewed By: njormrod@fb.com
Subscribers: fugalh, njormrod
FB internal diff:
D1575632
Tasks:
5225808
template <class TPE>
static void stop() {
- TPE tpe(10);
+ TPE tpe(1);
std::atomic<int> completed(0);
auto f = [&](){
- burnMs(1)();
+ burnMs(10)();
completed++;
};
for (int i = 0; i < 1000; i++) {
}));
std::atomic<int> expireCbCount(0);
auto expireCb = [&] () { expireCbCount++; };
- tpe.add(burnMs(10), milliseconds(10), expireCb);
+ tpe.add(burnMs(10), seconds(60), expireCb);
tpe.add(burnMs(10), milliseconds(10), expireCb);
tpe.join();
EXPECT_EQ(2, statCbCount);