Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITOAuth2Client: use less aggressive token lifespans #7675

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

adutra
Copy link
Contributor

@adutra adutra commented Oct 27, 2023

Fixes #7673. A lifespan of 5 seconds for the access token may be too short for environments where the system undergo frequent long pauses, such as in CI.

Fixes projectnessie#7673. A lifespan of 5 seconds for the access token
may be too short for environments where the system
undergo frequent long pauses, such as in CI.
@@ -147,7 +147,6 @@ void testOAuth2ClientInitialRefreshToken() {
OAuth2ClientParams params = clientParams("Client2").build();
try (OAuth2Client client = new OAuth2Client(params);
HttpClient validatingClient = validatingHttpClient("Client2").build()) {
client.start();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For these tests, starting the background refresh cycle is not required.

@adutra adutra merged commit 2e5f40e into projectnessie:main Oct 27, 2023
16 checks passed
@adutra adutra deleted the it-oauth2-flaky branch October 27, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ITOAuth2Client.testOAuth2ClientTokenExchange is flaky
2 participants