Repository navigation
Commit 5ff243c
committed
test(pcapng,sctp): replace dead checks with ones that can fail (#2226)
Three checks could not fail: a != 104 size check no tree produces, a
BitField probe gating the SCTP mixed-bit round trip that is always true,
and a NOTE excusing the PCAP-NG side of the cap_len/packet equality.
- test_dumped_pcap_carries_the_payload_octets: compare against the
header-only size, 24 + 16 per record, which the pre-#646 dump hits.
- test_sctp_unit: drop bitfield_packs_zero_bits and its skipTest; the
mixed-bit test runs unconditionally.
- test_block2frame_puts_the_on_wire_length_in_len: assert
cap_len == len(frame.packet) and drop the NOTE.1 parent 91147a1 commit 5ff243c
3 files changed
Lines changed: 10 additions & 42 deletions
File tree
- tests/protocols
- misc/pcap
- transport
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 350 | + | |
354 | 351 | | |
355 | 352 | | |
356 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 34 | | |
59 | 35 | | |
60 | 36 | | |
| |||
246 | 222 | | |
247 | 223 | | |
248 | 224 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
254 | 229 | | |
255 | 230 | | |
256 | 231 | | |
| |||
329 | 304 | | |
330 | 305 | | |
331 | 306 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | 307 | | |
337 | 308 | | |
338 | 309 | | |
| |||
0 commit comments