Commit 2b806ee
Liam Merino
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.1 parent ff4ae21 commit 2b806ee
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1326 | 1329 | | |
1327 | 1330 | | |
1328 | 1331 | | |
1329 | 1332 | | |
1330 | 1333 | | |
1331 | 1334 | | |
1332 | 1335 | | |
| 1336 | + | |
1333 | 1337 | | |
| 1338 | + | |
1334 | 1339 | | |
1335 | 1340 | | |
1336 | 1341 | | |
1337 | 1342 | | |
1338 | 1343 | | |
1339 | 1344 | | |
| 1345 | + | |
1340 | 1346 | | |
1341 | 1347 | | |
1342 | 1348 | | |
| |||
0 commit comments