Skip to content

Commit

Permalink
> -> >=
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed Jan 12, 2020
1 parent fc20d75 commit a054624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/test/scala/org/apache/spark/SparkFunSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ abstract class SparkFunSuite
val loggingEvents = new ArrayBuffer[LoggingEvent]()

override def append(loggingEvent: LoggingEvent): Unit = {
if (loggingEvents.size > maxEvents) {
if (loggingEvents.size >= maxEvents) {
throw new IllegalStateException(s"Number of logging event reached the limit: $maxEvents")
}
loggingEvents.append(loggingEvent)
Expand Down

0 comments on commit a054624

Please sign in to comment.