Skip to content

Commit 7d81aa5

Browse files
committed
Fix pushTime tests
1 parent 2854fbf commit 7d81aa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Parse/src/test/java/com/parse/ParsePushStateTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void testPushTimeInThePast() {
186186
ParsePush.State.Builder builder = new ParsePush.State.Builder();
187187

188188
ParsePush.State state = builder
189-
.pushTime(System.currentTimeMillis() - 1000)
189+
.pushTime(System.currentTimeMillis() / 1000 - 1000)
190190
.data(new JSONObject())
191191
.build();
192192
}
@@ -196,7 +196,7 @@ public void testPushTimeTwoWeeksFromNow() {
196196
ParsePush.State.Builder builder = new ParsePush.State.Builder();
197197

198198
ParsePush.State state = builder
199-
.pushTime(System.currentTimeMillis() + 60*60*24*7*3)
199+
.pushTime(System.currentTimeMillis() / 1000 + 60*60*24*7*3)
200200
.data(new JSONObject())
201201
.build();
202202
}

0 commit comments

Comments
 (0)