mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-06 22:22:38 +03:00
Fix WriteFlowControl test
Summary: The assignment is wrong Reviewed By: mjoras Differential Revision: D28847255 fbshipit-source-id: 9133d88c953f74c8caac303f20c74bc089574d11
This commit is contained in:
committed by
Facebook GitHub Bot
parent
38440d787c
commit
baac146246
@@ -597,7 +597,7 @@ TEST_F(QuicTransportTest, WriteFlowControl) {
|
||||
|
||||
loopForWrites();
|
||||
EXPECT_EQ(conn.outstandings.packets.size(), 1);
|
||||
auto& packet =
|
||||
const auto& packet =
|
||||
getFirstOutstandingPacket(conn, PacketNumberSpace::AppData)->packet;
|
||||
bool blockedFound = false;
|
||||
bool dataBlockedFound = false;
|
||||
@@ -654,9 +654,10 @@ TEST_F(QuicTransportTest, WriteFlowControl) {
|
||||
|
||||
// Verify that there is one Data Blocked frame emitted.
|
||||
EXPECT_EQ(conn.outstandings.packets.size(), num_outstandings + 2);
|
||||
packet = getLastOutstandingPacket(conn, PacketNumberSpace::AppData)->packet;
|
||||
const auto& packet2 =
|
||||
getLastOutstandingPacket(conn, PacketNumberSpace::AppData)->packet;
|
||||
dataBlockedFound = false;
|
||||
for (auto& frame : packet.frames) {
|
||||
for (auto& frame : packet2.frames) {
|
||||
auto dataBlocked = frame.asDataBlockedFrame();
|
||||
if (!dataBlocked) {
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user