From 8f9aed1ce5f8064b085af9dbf05ca12e3596645d Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Wed, 11 Jul 2018 15:05:03 -0600 Subject: [PATCH] Fix flaky test The test would fail any time the original value was coincidently the same as the new bogus value. --- src/sigverify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sigverify.rs b/src/sigverify.rs index d6fb66fe24acb7..c4bfeb6bc975f1 100644 --- a/src/sigverify.rs +++ b/src/sigverify.rs @@ -186,7 +186,7 @@ mod tests { // jumble some data to test failure if modify_data { - packet.data[20] = 10; + packet.data[20] = packet.data[20].wrapping_add(10); } // generate packet vector