aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorscwf <wangfei1@huawei.com>2015-05-26 08:42:52 -0500
committerImran Rashid <irashid@cloudera.com>2015-05-26 08:42:52 -0500
commitbf49c22130af9a729dcc510743e4c1ea4c5d2439 (patch)
treecd77724a99c06af99546ba78f85a5a707b41809b /core
parent43aa819c041f6e8301ad1b8f82eb68e14254f636 (diff)
downloadspark-bf49c22130af9a729dcc510743e4c1ea4c5d2439.tar.gz
spark-bf49c22130af9a729dcc510743e4c1ea4c5d2439.tar.bz2
spark-bf49c22130af9a729dcc510743e4c1ea4c5d2439.zip
[CORE] [TEST] Fix SimpleDateParamTest
``` sbt.ForkMain$ForkError: 1424424077190 was not equal to 1424474477190 at org.scalatest.MatchersHelper$.newTestFailedException(MatchersHelper.scala:160) at org.scalatest.Matchers$ShouldMethodHelper$.shouldMatcher(Matchers.scala:6231) at org.scalatest.Matchers$AnyShouldWrapper.should(Matchers.scala:6265) at org.apache.spark.status.api.v1.SimpleDateParamTest$$anonfun$1.apply$mcV$sp(SimpleDateParamTest.scala:25) at org.apache.spark.status.api.v1.SimpleDateParamTest$$anonfun$1.apply(SimpleDateParamTest.scala:23) at org.apache.spark.status.api.v1.SimpleDateParamTest$$anonfun$1.apply(SimpleDateParamTest.scala:23) at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) at org.scalatest.Transformer.apply(Transformer.scala:22) at org.scalatest.Transformer.apply(Transformer.scala:20) at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166) at org.scalatest.Suite$class.withFixture(Suite.scala: ``` Set timezone to fix SimpleDateParamTest Author: scwf <wangfei1@huawei.com> Author: Fei Wang <wangfei1@huawei.com> Closes #6377 from scwf/fix-SimpleDateParamTest and squashes the following commits: b8df1e5 [Fei Wang] Update SimpleDateParamSuite.scala 8bb74f0 [scwf] fix SimpleDateParamSuite
Diffstat (limited to 'core')
-rw-r--r--core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamSuite.scala (renamed from core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamTest.scala)6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamTest.scala b/core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamSuite.scala
index 5274df904d..731d1f557e 100644
--- a/core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamTest.scala
+++ b/core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamSuite.scala
@@ -18,12 +18,12 @@ package org.apache.spark.status.api.v1
import org.scalatest.{Matchers, FunSuite}
-class SimpleDateParamTest extends FunSuite with Matchers {
+class SimpleDateParamSuite extends FunSuite with Matchers {
test("date parsing") {
new SimpleDateParam("2015-02-20T23:21:17.190GMT").timestamp should be (1424474477190L)
- new SimpleDateParam("2015-02-20T17:21:17.190CST").timestamp should be (1424474477190L)
- new SimpleDateParam("2015-02-20").timestamp should be (1424390400000L) // GMT
+ new SimpleDateParam("2015-02-20T17:21:17.190EST").timestamp should be (1424470877190L)
+ new SimpleDateParam("2015-02-20").timestamp should be (1424390400000L) // GMT
}
}