From dcbc49b06a6ccdd2d9658c0abea772ec69370e6a Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Tue, 2 Aug 2016 05:09:28 -0400 Subject: [PATCH] fix SimpleCopyJob.compareTo test bug --- .../test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java index ba72ae4b858..7e148810b47 100644 --- a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java +++ b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java @@ -118,6 +118,8 @@ class SimpleCopyJob extends CopyJob { return highPriority ? -1 : 1; } else if (ord < other.ord) { return -1; + } else if (ord > other.ord) { + return 1; } else { return 0; }