Fix flaky test
The test would fail any time the original value was coincidently the same as the new bogus value.
This commit is contained in:
parent
45ff142871
commit
87156e1364
|
@ -186,7 +186,7 @@ mod tests {
|
||||||
|
|
||||||
// jumble some data to test failure
|
// jumble some data to test failure
|
||||||
if modify_data {
|
if modify_data {
|
||||||
packet.data[20] = 10;
|
packet.data[20] = packet.data[20].wrapping_add(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
// generate packet vector
|
// generate packet vector
|
||||||
|
|
Loading…
Reference in New Issue