Skip to content

Commit 3b69426

Browse files
authored
[Test] Bump timeout from 100 to 200 ms for the 2nd auth. (#74119)
This test failure happens fairly rarely, roughly once per month, including on PRs and 6.8 branch. It almost requires no change. Hence this PR only bumps the timeout for just another 100 ms. It does not increases the timeout by too much becausd that would otherwise hide other real problems, e.g. 2nd auth taking too long is likely an issue for the caching mechanism.
1 parent 5784649 commit 3b69426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ApiKeyServiceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ public void testAuthenticateWhileCacheBeingPopulated() throws Exception {
698698
assertThat(authResult1.isAuthenticated(), is(true));
699699
checkAuthApiKeyMetadata(metadata, authResult1);
700700

701-
final AuthenticationResult authResult2 = future2.actionGet(TimeValue.timeValueMillis(100));
701+
final AuthenticationResult authResult2 = future2.actionGet(TimeValue.timeValueMillis(200));
702702
assertThat(authResult2.isAuthenticated(), is(true));
703703
checkAuthApiKeyMetadata(metadata, authResult2);
704704

0 commit comments

Comments
 (0)