Skip to content

Commit

Permalink
[Core]Fixed failing filter test
Browse files Browse the repository at this point in the history
  • Loading branch information
grass-hopper-moc committed May 31, 2019
1 parent 4e40c78 commit 6c19a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/cucumber/runtime/filter/Filters.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public boolean matchesFilters(PickleEvent pickleEvent) {
}

public List<PickleEvent> limitPickleEvents(List<PickleEvent> pickleEvents) {
if (count > pickleEvents.size() || count < 0) {
if (count > pickleEvents.size() || count < 1) {
return pickleEvents;
}
return pickleEvents.subList(0, count);
Expand Down

0 comments on commit 6c19a59

Please sign in to comment.