Skip to content

Commit 312620a

Browse files
author
maji2014
committed
change a new statement for spark-4295
1 parent 24c3d21 commit 312620a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class SparkSinkSuite extends FunSuite {
159159
channelContext.put("transactionCapacity", 1000.toString)
160160
channelContext.put("keep-alive", 0.toString)
161161
channelContext.putAll(overrides)
162-
channel.setName(getClass.getDeclaredMethods.toString)
162+
channel.setName(scala.util.Random.nextString(10))
163163
channel.configure(channelContext)
164164

165165
val sink = new SparkSink()

0 commit comments

Comments
 (0)