Skip to content

Commit

Permalink
Add additional debug for possible race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dbwiddis committed May 28, 2020
1 parent 671cf08 commit 92ca9b8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -281,8 +281,8 @@ public void testGetSessions() {
assertTrue(sess.getUserName().length() > 0);
assertTrue(sess.getTerminalDevice().length() > 0);
// Login time
assertTrue(String.format("Logon time should be before now: %d < %d", sess.getLoginTime(),
System.currentTimeMillis()), sess.getLoginTime() <= System.currentTimeMillis());
assertTrue(String.format("Logon time should be before now: %d < %d%n%s", sess.getLoginTime(),
System.currentTimeMillis(), sess), sess.getLoginTime() <= System.currentTimeMillis());
assertNotNull(sess.getHost());
}
}
Expand Down

0 comments on commit 92ca9b8

Please sign in to comment.