Commit 5b8add09 authored by Andrii Grynenko's avatar Andrii Grynenko Committed by Facebook Github Bot

Make Observer.Stress test not fail under load

Reviewed By: marcinpe

Differential Revision: D4171655

fbshipit-source-id: e6ef33c50d5d91e05250520171c959a893470460
parent 8712f361
......@@ -237,7 +237,9 @@ TEST(Observer, Stress) {
values.withRLock([numIters = numIters](const std::vector<int>& values) {
EXPECT_EQ(numIters * 10, values.back());
EXPECT_LT(values.size(), numIters / 2);
EXPECT_GT(values.size(), 10);
EXPECT_EQ(0, values[0]);
EXPECT_EQ(numIters * 10, values.back());
for (auto value : values) {
EXPECT_EQ(0, value % 10);
......
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