You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#2081: Apply zstd compression level reliably across the documente… (#2113)
* Fix#2081: Apply zstd compression level reliably across the documented range
* Fix flaky zstd compression-level test
The test compared output sizes for levels 1 vs 10 on a 20KB pcap; on
inputs that small, zstd produces identical output for both levels, so
the GREATER_THAN assertion always failed. Switch to a larger input
(EXAMPLE2_PCAPNG_PATH, ~26KB) and widen the gap to levels 1 vs 22
(zstd's documented max), which produces a clear size delta.
Also brace the single-statement while body per review nit.
* Skip zstd compression-level test when zstd is not configured
---------
Co-authored-by: Liam Merino <merino@uber.com>
Co-authored-by: seladb <pcapplusplus@gmail.com>
0 commit comments