Skip to content

Commit af14a2c

Browse files
authored
Reducing buffer size for NthPacketDrop test (#6068)
## Description To fix flakiness of NthPacketDrop test, reduced the quic buffer size to 1MB and dropping every other datagram in the buffer keeping the intent of the test. #5961 ## Testing CI/CD ## Documentation No Documentation impact
1 parent 42e9651 commit af14a2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/lib/DataTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,7 +3156,7 @@ QuicTestNthPacketDrop(
31563156
const uint32_t BufferLength = 0x800000;
31573157
const uint64_t TimeOutS = 60 * 60; // 1 hour
31583158
#else
3159-
const uint32_t BufferLength = 0x200000;
3159+
const uint32_t BufferLength = 0x100000;
31603160
const uint64_t TimeOutS = 50; // All test cases need to complete in less than 60 seconds
31613161
#endif
31623162
uint8_t* RawBuffer = new(std::nothrow) uint8_t[BufferLength];
@@ -3169,7 +3169,7 @@ QuicTestNthPacketDrop(
31693169

31703170
bool StopRunning = false;
31713171
for (uint32_t i = 0; !StopRunning; ++i) {
3172-
NthLossHelper LossHelper(i);
3172+
NthLossHelper LossHelper(2*i);
31733173
MsQuicStream Stream(Connection, QUIC_STREAM_OPEN_FLAG_UNIDIRECTIONAL);
31743174
CONTINUE_ON_FAIL(Stream.GetInitStatus());
31753175

0 commit comments

Comments
 (0)