Skip to content

Commit

Permalink
[ADAM-532] Fix wigFix intermittent test failure
Browse files Browse the repository at this point in the history
When reading the converted output, it's possible that the order of the records is undefined.  I added a sort which should make things more reliable.

Fixes #532.
  • Loading branch information
laserson committed Jan 10, 2015
1 parent 2cd4fdb commit 7056125
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Features2ADAMSuite extends FunSuite {
val schema = Projection(featureId, contig, start, end, value)
val lister = new ParquetLister[Feature](Some(schema))

val converted = lister.materialize(outputPath).toSeq
val converted = lister.materialize(outputPath).toSeq.sortBy(f => f.getStart)

assert(converted.size === 10)
assert(converted(0).getContig.getContigName == "chr5")
Expand Down

0 comments on commit 7056125

Please sign in to comment.