JAL-2154 ensure pass increments actually result in a termination
authorJim Procter <jprocter@issues.jalview.org>
Fri, 26 Aug 2016 12:24:05 +0000 (13:24 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 26 Aug 2016 12:24:05 +0000 (13:24 +0100)
test/jalview/io/CrossRef2xmlTests.java

index 67626c8..fc59e1f 100644 (file)
@@ -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);
     }