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:
parent
23c6aee236
commit
00c98ff0cf
|
|
@ -44,7 +44,7 @@ public class MisencodedBaseQualityReadTransformer extends ReadTransformer {
|
||||||
|
|
||||||
private boolean disabled;
|
private boolean disabled;
|
||||||
private boolean fixQuals;
|
private boolean fixQuals;
|
||||||
private static int currentReadCounter = 0;
|
protected static int currentReadCounter = 0;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ApplicationTime initializeSub(final GenomeAnalysisEngine engine, final Walker walker) {
|
public ApplicationTime initializeSub(final GenomeAnalysisEngine engine, final Walker walker) {
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,8 @@ public class MisencodedBaseQualityUnitTest extends BaseTest {
|
||||||
|
|
||||||
@BeforeMethod
|
@BeforeMethod
|
||||||
public void before() {
|
public void before() {
|
||||||
|
// reset the read counter so that we are deterministic
|
||||||
|
MisencodedBaseQualityReadTransformer.currentReadCounter = 0;
|
||||||
header = ArtificialSAMUtils.createArtificialSamHeader(1, 1, 1000);
|
header = ArtificialSAMUtils.createArtificialSamHeader(1, 1, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue