aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-05-31 05:41:18 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-05-31 05:41:18 +0200
commit204893a0250c6f18a9d132e14ea1707d1b1a5124 (patch)
tree42ef733543fe638ec1d38fd2f0a4e1e603b6069e
parent1bc14ab6ae987b67f2ee5923e5d3469fcebc8c0a (diff)
downloadopen-keychain-204893a0250c6f18a9d132e14ea1707d1b1a5124.tar.gz
open-keychain-204893a0250c6f18a9d132e14ea1707d1b1a5124.tar.bz2
open-keychain-204893a0250c6f18a9d132e14ea1707d1b1a5124.zip
fix small non-deterministic failure case in unit test
-rw-r--r--OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java2
1 files changed, 1 insertions, 1 deletions
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);