Skip to content

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
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