Skip to content

Commit 651ceae

Browse files
committed
[SQL] Fix flaky SET test
Author: Michael Armbrust <[email protected]> Closes #4480 from marmbrus/fixSetTests and squashes the following commits: f2e501e [Michael Armbrust] [SQL] Fix flaky SET test
1 parent 03d4097 commit 651ceae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ class HiveQuerySuite extends HiveComparisonTest {
541541

542542
sql(s"SET ${testKey + testKey}=${testVal + testVal}")
543543
assert(hiveconf.get(testKey + testKey, "") == testVal + testVal)
544-
assertResult(Array(s"$testKey=$testVal", s"${testKey + testKey}=${testVal + testVal}")) {
545-
sql(s"SET").collect().map(_.getString(0))
544+
assertResult(Set(s"$testKey=$testVal", s"${testKey + testKey}=${testVal + testVal}")) {
545+
sql(s"SET").collect().map(_.getString(0)).toSet
546546
}
547547
assertResult(Set(testKey -> testVal, (testKey + testKey) -> (testVal + testVal))) {
548548
collectResults(sql("SET -v"))

0 commit comments

Comments
 (0)