Skip to content

Commit e7d17d2

Browse files
committed
Reduce number of timezones in the test
1 parent 1ee472e commit e7d17d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/JsonExpressionsSuite.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ package org.apache.spark.sql.catalyst.expressions
1919

2020
import java.util.Calendar
2121

22+
import scala.util.Random
23+
2224
import org.apache.spark.SparkFunSuite
2325
import org.apache.spark.sql.catalyst.InternalRow
2426
import org.apache.spark.sql.catalyst.errors.TreeNodeException
@@ -510,7 +512,7 @@ class JsonExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper with
510512
)
511513

512514
val jsonData2 = """{"t": "2016-01-01T00:00:00"}"""
513-
for (tz <- DateTimeTestUtils.ALL_TIMEZONES) {
515+
for (tz <- Random.shuffle(DateTimeTestUtils.ALL_TIMEZONES).take(8)) {
514516
c = Calendar.getInstance(tz)
515517
c.set(2016, 0, 1, 0, 0, 0)
516518
c.set(Calendar.MILLISECOND, 0)

0 commit comments

Comments
 (0)