Skip to content

Commit 8bb74f0

Browse files
committed
fix SimpleDateParamSuite
1 parent 4f4ba8f commit 8bb74f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamTest.scala renamed to core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamSuite.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ package org.apache.spark.status.api.v1
1818

1919
import org.scalatest.{Matchers, FunSuite}
2020

21-
class SimpleDateParamTest extends FunSuite with Matchers {
21+
class SimpleDateParamSuite extends FunSuite with Matchers {
2222

2323
test("date parsing") {
2424
new SimpleDateParam("2015-02-20T23:21:17.190GMT").timestamp should be (1424474477190L)
25-
new SimpleDateParam("2015-02-20T17:21:17.190CST").timestamp should be (1424474477190L)
26-
new SimpleDateParam("2015-02-20").timestamp should be (1424390400000L) // GMT
25+
new SimpleDateParam("2015-02-20T17:21:17.190EST").timestamp should be (1424470877190L)
26+
new SimpleDateParam("2015-02-20GMT").timestamp should be (1424390400000L)
27+
new SimpleDateParam("2015-02-20EST").timestamp should be (1424390400000L)
2728
}
2829

2930
}

0 commit comments

Comments
 (0)