Need to reset the static counter before tests are run or else we won't be deterministic.

Also need to give credit where credit is due: David was right that this was not a non-deterministic Bamboo failure...
This commit is contained in:
Eric Banks 2013-02-05 10:41:46 -05:00
parent 23c6aee236
commit 00c98ff0cf
2 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class MisencodedBaseQualityReadTransformer extends ReadTransformer {
private boolean disabled;
private boolean fixQuals;
private static int currentReadCounter = 0;
protected static int currentReadCounter = 0;
@Override
public ApplicationTime initializeSub(final GenomeAnalysisEngine engine, final Walker walker) {

View File

@ -49,6 +49,8 @@ public class MisencodedBaseQualityUnitTest extends BaseTest {
@BeforeMethod
public void before() {
// reset the read counter so that we are deterministic
MisencodedBaseQualityReadTransformer.currentReadCounter = 0;
header = ArtificialSAMUtils.createArtificialSamHeader(1, 1, 1000);
}