Test WorkBoundExpensiveOperationController treats -1 as unlimited.

This commit is contained in:
Steve Hill
2016-09-09 15:53:47 -04:00
parent d9027813a8
commit c633ec01a6
@@ -99,6 +99,10 @@ TEST_F(WorkBoundExpensiveOperationTest, LimitZeroIsUnlimited) {
EXPECT_TRUE(TryToWork());
}
TEST_F(WorkBoundExpensiveOperationTest, LimitNegativeIsUnlimited) {
InitControllerWithLimit(-1);
EXPECT_TRUE(TryToWork());
}
} // namespace
} // namespace net_instaweb