From 7e25e03f37c57b099239e0e6f5e6a413a4f6539c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 26 Aug 2016 13:24:05 +0100 Subject: [PATCH] JAL-2154 ensure pass increments actually result in a termination --- test/jalview/io/CrossRef2xmlTests.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/jalview/io/CrossRef2xmlTests.java b/test/jalview/io/CrossRef2xmlTests.java index 67626c8..fc59e1f 100644 --- a/test/jalview/io/CrossRef2xmlTests.java +++ b/test/jalview/io/CrossRef2xmlTests.java @@ -369,10 +369,14 @@ public class CrossRef2xmlTests extends Jalview2xmlBase } else { - // verify stored projects for second set of cross references - pass2 = 1; + pass1++; + if (pass1 < 2) + { + // verify stored projects for second set of cross references + pass2 = 1; // and verify cross-references retrievable from those stored projects. - pass3 = 0; + pass3 = 0; + } } } while (pass3 < 2); } -- 1.7.10.2