Explorar o código

Merge #764

764: Fix incorrect test packet r=thvdveld a=thvdveld

The packet had 0x12 for the length, which is not the same as the variable name suggests.

bors r+

Co-authored-by: Thibaut Vandervelden <thvdveld@vub.be>
bors[bot] %!s(int64=2) %!d(string=hai) anos
pai
achega
2ccf297eb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/wire/ipv6hopbyhop.rs

+ 1 - 1
src/wire/ipv6hopbyhop.rs

@@ -219,7 +219,7 @@ mod test {
 
     // A Hop-by-Hop Option header with a PadN option of option data length 12.
     static REPR_PACKET_PAD12: [u8; 16] = [
-        0x06, 0x1, 0x1, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
+        0x06, 0x1, 0x1, 0x0C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
     ];
 
     #[test]