[
https://issues.apache.org/jira/browse/KNOX-2340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17081126#comment-17081126
]
ASF subversion and git services commented on KNOX-2340:
-------------------------------------------------------
Commit 0e04e5c005e9cc7d3f0f811633477a5067deb0aa in knox's branch
refs/heads/master from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=0e04e5c ]
KNOX-2340 - Fix DefaultTokenStateServiceTest timeouts (#312)
Fix DefaultTokenStateServiceTest timeouts to be more
reasonable. I used TimeUnit every where to ensure we
are doing things with the correct unit of time.
Previously there were issues where milliseconds and
seconds were being mixed. This caused race conditions
in AliasBasedTokenStateServiceTest which extends
DefaultTokenStateServiceTest.
Signed-off-by: Kevin Risden <[email protected]>
> AliasBasedTokenStateServiceTest failure
> ---------------------------------------
>
> Key: KNOX-2340
> URL: https://issues.apache.org/jira/browse/KNOX-2340
> Project: Apache Knox
> Issue Type: Bug
> Components: Tests
> Reporter: Kevin Risden
> Assignee: Kevin Risden
> Priority: Major
> Fix For: 1.4.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> This looks to be a race condition somehow since I haven't seen this locally.
> {code:java}
> 2020-04-10T22:03:10.7648621Z [ERROR]
> AliasBasedTokenStateServiceTest>DefaultTokenStateServiceTest.testTokenEviction:214
> unexpected exception type thrown;
> expected:<org.apache.knox.gateway.services.security.token.UnknownTokenException>
> but was:<java.lang.IllegalArgumentException>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)