Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Sort test list before sharding to help ensure more consistent ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
jdillon committed Mar 2, 2013
1 parent 5400393 commit 43abc82
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -28,7 +28,7 @@ scanner.scan()

println "Found ${scanner.includedFilesCount} test-classes"

def iter = scanner.includedFiles.toList().iterator()
def iter = scanner.includedFiles.toList().sort().iterator() // sorting to help get consistent shards regardless of scanner order
def running = true
while (running) {
for (i in 0 ..< shardCount) {
Expand Down

0 comments on commit 43abc82

Please sign in to comment.