HADOOP-9553. TestAuthenticationToken fails on Windows. Contributed by Arpit Agarwal.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1480883 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ae9a981855
commit
146ccd7b06
@ -88,7 +88,7 @@ public void testGetters() throws Exception {
|
|||||||
assertEquals("t", token.getType());
|
assertEquals("t", token.getType());
|
||||||
assertEquals(expires, token.getExpires());
|
assertEquals(expires, token.getExpires());
|
||||||
assertFalse(token.isExpired());
|
assertFalse(token.isExpired());
|
||||||
Thread.sleep(51);
|
Thread.sleep(70); // +20 msec fuzz for timer granularity.
|
||||||
assertTrue(token.isExpired());
|
assertTrue(token.isExpired());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ public void testToStringAndParse() throws Exception {
|
|||||||
assertEquals("t", token.getType());
|
assertEquals("t", token.getType());
|
||||||
assertEquals(expires, token.getExpires());
|
assertEquals(expires, token.getExpires());
|
||||||
assertFalse(token.isExpired());
|
assertFalse(token.isExpired());
|
||||||
Thread.sleep(51);
|
Thread.sleep(70); // +20 msec fuzz for timer granularity.
|
||||||
assertTrue(token.isExpired());
|
assertTrue(token.isExpired());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -554,6 +554,8 @@ Trunk (Unreleased)
|
|||||||
HADOOP-9556. disable HA tests on Windows that fail due to ZooKeeper client
|
HADOOP-9556. disable HA tests on Windows that fail due to ZooKeeper client
|
||||||
connection management bug. (Chris Nauroth via suresh)
|
connection management bug. (Chris Nauroth via suresh)
|
||||||
|
|
||||||
|
HADOOP-9553. TestAuthenticationToken fails on Windows.
|
||||||
|
(Arpit Agarwal via suresh)
|
||||||
|
|
||||||
Release 2.0.5-beta - UNRELEASED
|
Release 2.0.5-beta - UNRELEASED
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user