From 204893a0250c6f18a9d132e14ea1707d1b1a5124 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Sun, 31 May 2015 05:41:18 +0200 Subject: fix small non-deterministic failure case in unit test --- .../java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenKeychain-Test/src/test') diff --git a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java index 312875229..e74b84dfb 100644 --- a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java +++ b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java @@ -1012,7 +1012,7 @@ public class PgpKeyOperationTest { parcel.reset(); Random r = new Random(); - int type = r.nextInt(110)+1; + int type = r.nextInt(110)+2; // any type except image attribute, to avoid interpretation of these byte[] data = new byte[r.nextInt(2000)]; new Random().nextBytes(data); -- cgit v1.2.3