Skip to content

Commit 1d7975c

Browse files
committed
Fix test
1 parent 65239f9 commit 1d7975c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DataSourceSuite extends SharedSparkSession {
2626
import TestPaths._
2727

2828
test("test glob and non glob paths") {
29-
val allPaths = DataSource.checkAndGlobPathIfNecessary(
29+
val resultPaths = DataSource.checkAndGlobPathIfNecessary(
3030
Seq(
3131
path1.toString,
3232
path2.toString,
@@ -38,11 +38,11 @@ class DataSourceSuite extends SharedSparkSession {
3838
checkFilesExist = true,
3939
)
4040

41-
assert(allPaths.equals(allPathsInFs))
41+
assert(resultPaths.toSet == allPathsInFs.toSet)
4242
}
4343

4444
test("test glob paths") {
45-
val allPaths = DataSource.checkAndGlobPathIfNecessary(
45+
val resultPaths = DataSource.checkAndGlobPathIfNecessary(
4646
Seq(
4747
globPath1.toString,
4848
globPath2.toString,
@@ -53,7 +53,7 @@ class DataSourceSuite extends SharedSparkSession {
5353
)
5454

5555
assert(
56-
allPaths.equals(
56+
resultPaths.equals(
5757
Seq(
5858
globPath1Result1,
5959
globPath1Result2,
@@ -65,7 +65,7 @@ class DataSourceSuite extends SharedSparkSession {
6565
}
6666

6767
test("test non glob paths") {
68-
val allPaths = DataSource.checkAndGlobPathIfNecessary(
68+
val resultPaths = DataSource.checkAndGlobPathIfNecessary(
6969
Seq(
7070
path1.toString,
7171
path2.toString,
@@ -76,7 +76,7 @@ class DataSourceSuite extends SharedSparkSession {
7676
)
7777

7878
assert(
79-
allPaths.equals(
79+
resultPaths.equals(
8080
Seq(
8181
path1,
8282
path2,

0 commit comments

Comments
 (0)