Skip to content

Commit

Permalink
Fix error when trying to shard with no available tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fellen31 committed Oct 24, 2024
1 parent a0107af commit f70ac3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public Integer execute() throws Exception {
List<ITestSuite> testSuits = testSuiteResolver.parse(scripts, new TagQuery(tags));

testSuits.sort(TestSuiteSorter.getDefault());
if (shard != null) {
if (shard != null && !testSuits.isEmpty()) {
if (shardStrategy.equalsIgnoreCase(SHARD_STRATEGY_ROUND_ROBIN)){
testSuits = TestSuiteSharder.shardWithRoundRobin(testSuits, shard);
} else {
Expand Down

0 comments on commit f70ac3c

Please sign in to comment.