Skip to content

Commit

Permalink
Merge pull request #667 from opencb/TASK-5025
Browse files Browse the repository at this point in the history
TASK-5025 CellBase CI/CD fails due to a JUnit test error
  • Loading branch information
jtarraga authored Sep 21, 2023
2 parents a58072c + 79997a4 commit 7965af5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.opencb.cellbase.client.rest;

import org.apache.avro.specific.SpecificRecordBase;
import org.apache.commons.collections4.CollectionUtils;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down Expand Up @@ -104,6 +105,10 @@ private void orderVariantAnnotation(VariantAnnotation va) {
c.getProteinVariantAnnotation().getFeatures().sort(Comparator.comparing(SpecificRecordBase::hashCode));
}
});

if (CollectionUtils.isNotEmpty(va.getFunctionalScore())) {
va.getFunctionalScore().sort(Comparator.comparing(SpecificRecordBase::hashCode));
}
}

// @Test
Expand Down

0 comments on commit 7965af5

Please sign in to comment.