@@ -243,20 +243,17 @@ TEST_P(MetadataChacheTTLTestParam, CheckTTLValid) {
243
243
ASSERT_THAT (router.kill (), testing::Eq (0 ));
244
244
}
245
245
246
- // Note: +1 becuase the router queries for the metadata twice when it
247
- // initializes. Whenever that gets fixed and this test starts failing try
248
- // removing '+1'
249
246
INSTANTIATE_TEST_CASE_P (
250
247
CheckTTLIsUsedCorrectly, MetadataChacheTTLTestParam,
251
248
::testing::Values (
252
- MetadataTTLTestParams (" 0.4" , std::chrono::milliseconds(600 ), 2 + 1 ),
253
- MetadataTTLTestParams(" 1" , std::chrono::milliseconds(2500 ), 3 + 1 ),
249
+ MetadataTTLTestParams (" 0.4" , std::chrono::milliseconds(600 ), 2),
250
+ MetadataTTLTestParams(" 1" , std::chrono::milliseconds(2500 ), 3),
254
251
// check that default is 0.5 if not provided:
255
- MetadataTTLTestParams(" " , std::chrono::milliseconds(1750 ), 4 + 1 ),
252
+ MetadataTTLTestParams(" " , std::chrono::milliseconds(1750 ), 4),
256
253
// check that for 0 there are multiple ttl queries (we can't really
257
254
// guess how many there will be, but we should be able to safely assume
258
255
// that in 1 second it shold be at least 5 queries)
259
- MetadataTTLTestParams(" 0" , std::chrono::milliseconds(1000 ), 5 + 1 ,
256
+ MetadataTTLTestParams(" 0" , std::chrono::milliseconds(1000 ), 5,
260
257
/* at_least=*/ true)));
261
258
262
259
class MetadataChacheTTLTestParamInvalid
0 commit comments