mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
Allow calling getTimeUntilNextWrite with a timepoint to avoid test flakiness
Summary: This solves test flake that resulted from using EXPECT_NEAR with varying timing on devservers and CI situations Reviewed By: yangchi Differential Revision: D29574796 fbshipit-source-id: 804935e8e0148fcccec642a1894e8863bee4465b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ec799b3860
commit
a9171a1cfa
@@ -3170,7 +3170,7 @@ TEST_F(QuicTransportTest, AlreadyScheduledPacingNoWrite) {
|
||||
EXPECT_CALL(*socket_, write(_, _)).WillOnce(Return(0));
|
||||
EXPECT_CALL(*rawPacer, updateAndGetWriteBatchSize(_))
|
||||
.WillRepeatedly(Return(1));
|
||||
EXPECT_CALL(*rawPacer, getTimeUntilNextWrite())
|
||||
EXPECT_CALL(*rawPacer, getTimeUntilNextWrite(_))
|
||||
.WillRepeatedly(Return(3600000ms));
|
||||
// This will write out 100 bytes, leave 100 bytes behind. FunctionLooper will
|
||||
// schedule a pacing timeout.
|
||||
|
Reference in New Issue
Block a user