Skip to content

Commit 6618b46

Browse files
author
Andrew Or
committed
Exempt SparkSinkSuite from the FunSuite check
See the in-code comment for an explanation of why this is necessary.
1 parent 99d02ac commit 6618b46

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

external/flume-sink/src/test/scala/org/apache/spark/streaming/flume/sink/SparkSinkSuite.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,18 @@ import org.apache.flume.Context
3131
import org.apache.flume.channel.MemoryChannel
3232
import org.apache.flume.event.EventBuilder
3333
import org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory
34+
35+
// Due to MNG-1378, there is not a way to include test dependencies transitively.
36+
// We cannot include Spark core tests as a dependency here because it depends on
37+
// Spark core main, which has too many dependencies to require here manually.
38+
// For this reason, we continue to use FunSuite and ignore the scalastyle checks
39+
// that fail if this is detected.
40+
//scalastyle:off
3441
import org.scalatest.FunSuite
3542

3643
class SparkSinkSuite extends FunSuite {
44+
//scalastyle:on
45+
3746
val eventsPerBatch = 1000
3847
val channelCapacity = 5000
3948

0 commit comments

Comments
 (0)