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

[hotfix] Fix unstable test case: testRefreshDLFAuthTokenFileAuthProvider #5186

Merged
merged 4 commits into from
Mar 3, 2025

Conversation

jerry-024
Copy link
Contributor

Purpose

Fix unstable test case: testRefreshDLFAuthTokenFileAuthProvider

Tests

API and Format

Documentation

@jerry-024 jerry-024 marked this pull request as draft February 28, 2025 09:04
@jerry-024 jerry-024 marked this pull request as ready for review March 3, 2025 01:14
@@ -101,8 +101,10 @@ public void testRefreshDLFAuthTokenFileAuthProvider() throws IOException, Interr
tokenFile2Token = generateTokenAndWriteToFile(fileName);
token = tokenFile2Token.getRight();
Thread.sleep(tokenRefreshInMills * 2);
authToken = OBJECT_MAPPER_INSTANCE.writeValueAsString(dlfAuthProvider.token);
assertEquals(authToken, token);
if (dlfAuthProvider.refreshSuccess) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe you can get token first, and get token to see if it is be equal to previous token.

@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit 96f433b into apache:master Mar 3, 2025
18 checks passed
@jerry-024 jerry-024 deleted the fix-test branch March 4, 2025 06:22
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.

2 participants