Skip to content

Commit 0cd31ad

Browse files
committed
Use set comparisons in test
1 parent 2a24b5f commit 0cd31ad

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/DataSourceSuite.scala

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,11 @@ class DataSourceSuite extends SharedSparkSession {
5454
)
5555

5656
assert(
57-
resultPaths.equals(
58-
Seq(
59-
globPath1Result1,
60-
globPath1Result2,
61-
globPath2Result1,
62-
globPath2Result2
63-
)
57+
resultPaths.toSet == Set(
58+
globPath1Result1,
59+
globPath1Result2,
60+
globPath2Result1,
61+
globPath2Result2
6462
)
6563
)
6664
}
@@ -77,11 +75,9 @@ class DataSourceSuite extends SharedSparkSession {
7775
)
7876

7977
assert(
80-
resultPaths.equals(
81-
Seq(
82-
path1,
83-
path2
84-
)
78+
resultPaths.toSet == Set(
79+
path1,
80+
path2
8581
)
8682
)
8783
}

0 commit comments

Comments
 (0)