Skip to content

Commit

Permalink
Fix Incorrect Test Comparison (#4131)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks committed Feb 14, 2024
1 parent 425138f commit f0c07a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/lib/ApiTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4792,7 +4792,10 @@ QuicTestGetPerfCounters()
nullptr),
QUIC_STATUS_BUFFER_TOO_SMALL);

TEST_EQUAL(BufferLength, sizeof(uint64_t) * QUIC_PERF_COUNTER_MAX);
if (BufferLength < sizeof(uint64_t) * QUIC_PERF_COUNTER_MAX) {
TEST_FAILURE("Perf counters length too small");
return;
}

//
// Test getting the full array of counters.
Expand Down

0 comments on commit f0c07a6

Please sign in to comment.