Skip to content

Commit

Permalink
Fix a Test Cleanup Race Condition (#4255)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks committed Apr 22, 2024
1 parent 0173785 commit 5ddcc02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/lib/DataTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,16 @@ QuicTestConnectAndPing(
_In_ bool FifoScheduling
)
{
MsQuicRegistration Registration(NULL, QUIC_EXECUTION_PROFILE_TYPE_MAX_THROUGHPUT, true);
TEST_TRUE(Registration.IsValid());

const uint32_t TimeoutMs = EstimateTimeoutMs(Length) * StreamBurstCount;
const uint16_t TotalStreamCount = (uint16_t)(StreamCount * StreamBurstCount);
QUIC_ADDRESS_FAMILY QuicAddrFamily = (Family == 4) ? QUIC_ADDRESS_FAMILY_INET : QUIC_ADDRESS_FAMILY_INET6;

PingStats ServerStats(Length, ConnectionCount, TotalStreamCount, FifoScheduling, UnidirectionalStreams, ServerInitiatedStreams, ClientZeroRtt && !ServerRejectZeroRtt, false, QUIC_STATUS_SUCCESS);
PingStats ClientStats(Length, ConnectionCount, TotalStreamCount, FifoScheduling, UnidirectionalStreams, ServerInitiatedStreams, ClientZeroRtt && !ServerRejectZeroRtt);

MsQuicRegistration Registration(NULL, QUIC_EXECUTION_PROFILE_TYPE_MAX_THROUGHPUT, true);
TEST_TRUE(Registration.IsValid());

if (ServerRejectZeroRtt) {
//
// TODO: Validate new connections don't do 0-RTT
Expand Down

0 comments on commit 5ddcc02

Please sign in to comment.