Skip to content

Commit

Permalink
Fix testTimeZone time difference
Browse files Browse the repository at this point in the history
  • Loading branch information
bear101 committed Oct 21, 2024
1 parent 298ce0c commit 7ce1c1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/TeamTalkJNI/test/dk/bearware/TeamTalkTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -4550,7 +4550,9 @@ public void testTimeZone() {
assertTrue("get account again", client.getMyUserAccount(second_login_account));
Date logintime = fmt.parse(second_login_account.szLastLoginTime, new ParsePosition(0));
Date now = new Date();
assertEquals("time stamp match within 2 minutes", now.getTime() / 1000 , logintime.getTime() / 1000, 120);
long diff = now.getTime() - logintime.getTime();
diff /= 1000;
assertEquals("time stamp match within 2 minutes", diff, 0, 120);
}

/* cannot test output levels since a user is muted by sound system after decoding and callback.
Expand Down

0 comments on commit 7ce1c1f

Please sign in to comment.