Skip to content

Commit

Permalink
CI: Trying to improve number of failures during time compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushistov committed May 18, 2024
1 parent 2b0fffb commit 12c6fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jni_tests/java/com/example/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ private static void testPassObjectsAsParams() {

private static void testDateTime() {
{
final Date today = Calendar.getInstance().getTime();
final Date now = Foo.now();
final Date nowChrono = Foo.chrono_now();
final DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
System.out.println("now: " + df.format(now));
final Date today = Calendar.getInstance().getTime();
System.out.println("now: " + now);
System.out.println("today: " + today);
assert Math.abs(today.getTime() - now.getTime()) < 2000;
Expand Down

0 comments on commit 12c6fb9

Please sign in to comment.