Skip to content

Commit 9ea4fb3

Browse files
committed
Avoid to use Random.nextString in StreamingInnerJoinSuite
1 parent e0054b8 commit 9ea4fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingJoinSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class StreamingInnerJoinSuite extends StreamTest with StateStoreMetricsTest with
350350
withTempDir { tempDir =>
351351
val queryId = UUID.randomUUID
352352
val opId = 0
353-
val path = Utils.createDirectory(tempDir.getAbsolutePath, Random.nextString(10)).toString
353+
val path = Utils.createDirectory(tempDir.getAbsolutePath, Random.nextFloat.toString).toString
354354
val stateInfo = StatefulOperatorStateInfo(path, queryId, opId, 0L, 5)
355355

356356
implicit val sqlContext = spark.sqlContext

0 commit comments

Comments
 (0)