Skip to content

Issue/73#74

Merged
DivineThreepwood merged 4 commits intofeature/testsfrom
issue/73
Oct 6, 2022
Merged

Issue/73#74
DivineThreepwood merged 4 commits intofeature/testsfrom
issue/73

Conversation

@pLeminoq
Copy link
Copy Markdown
Contributor

@pLeminoq pLeminoq commented Oct 4, 2022

📜 Description

Changes proposed in this pull request:

Copy link
Copy Markdown
Member

@DivineThreepwood DivineThreepwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor clarification requested.

Comment on lines +20 to +29
private fun isFailed(future: AbstractAuthenticationFuture<*, *>): Boolean {
try {
// Note: the abstract authentication future will remove itself from this list if
// get finished successfully.
future.get(FUTURE_TIMEOUT_IN_MS, TimeUnit.MILLISECONDS)
} catch (ex: ExecutionException) {
return true
}
return false
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you want to behave in case an TimeoutException occurs? You want to return false right? However, its not handled here and therefore the function will rethrow the TimeoutException which will lead to no further future checks of the other elements in the authenticatedFutureList.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right. I just updated this.

@DivineThreepwood DivineThreepwood merged commit 4e36cac into feature/tests Oct 6, 2022
@DivineThreepwood DivineThreepwood deleted the issue/73 branch October 6, 2022 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants