You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by to...@apache.org on 2017/01/10 14:53:15 UTC

avro git commit: AVRO-1970: Flaky test: TestInputBytes. Contributed by Gabor Szadovszky.

Repository: avro
Updated Branches:
  refs/heads/master 152fa0954 -> d559a7e87


AVRO-1970: Flaky test: TestInputBytes. Contributed by Gabor Szadovszky.


Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/d559a7e8
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/d559a7e8
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/d559a7e8

Branch: refs/heads/master
Commit: d559a7e877777096b3a2ad656606a5a2a88a2df9
Parents: 152fa09
Author: Gabor Szadovszky <ga...@cloudera.com>
Authored: Mon Dec 19 09:43:33 2016 +0100
Committer: Tom White <to...@cloudera.com>
Committed: Tue Jan 10 14:50:52 2017 +0000

----------------------------------------------------------------------
 CHANGES.txt                                                      | 2 ++
 .../core/src/test/java/org/apache/trevni/TestInputBytes.java     | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/d559a7e8/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index d5341e8..e5ab1b0 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -109,6 +109,8 @@ Trunk (not yet released)
     AVRO-1967: Java: Fix NPE when calling getXyzBuilder on instance where the xyz is null
     (Niels Basjes)
 
+    AVRO-1970: Java: Flaky test: TestInputBytes. (Gabor Szadovszky via tomwhite)
+
 Avro 1.8.1 (14 May 2016)
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/avro/blob/d559a7e8/lang/java/trevni/core/src/test/java/org/apache/trevni/TestInputBytes.java
----------------------------------------------------------------------
diff --git a/lang/java/trevni/core/src/test/java/org/apache/trevni/TestInputBytes.java b/lang/java/trevni/core/src/test/java/org/apache/trevni/TestInputBytes.java
index c55b532..24860b7 100644
--- a/lang/java/trevni/core/src/test/java/org/apache/trevni/TestInputBytes.java
+++ b/lang/java/trevni/core/src/test/java/org/apache/trevni/TestInputBytes.java
@@ -32,8 +32,8 @@ public class TestInputBytes {
   private static final int COUNT = 100;
 
   @Test public void testRandomReads() throws Exception {
-    Random random = new Random();
-    int length = random.nextInt(SIZE);
+    Random random = new Random(19820210);
+    int length = random.nextInt(SIZE) + 1;
     byte[] data = new byte[length];
     random.nextBytes(data);