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:
Greg Fitzgerald 2018-07-11 15:05:03 -06:00 committed by Grimes
parent 45ff142871
commit 87156e1364
1 changed files with 1 additions and 1 deletions

View File

@ -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