Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a correct test though I think @squito's intent was to test the same point in time, 2015-02-20T18:21:17.190EST, as it did before. Anyway, already LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it doesn't really matter. this looks good, thanks for the fix! I'm merging this now

new SimpleDateParam("2015-02-20").timestamp should be (1424390400000L) // GMT
}

}