Skip to content

Commit 3f1889a

Browse files
authored
Merge pull request #716 from jenkinsci/deflake-GithubAppCredentialsAppInstallationTokenTest
deflake GithubAppCredentialsAppInstallationTokenTest
2 parents ff97c8a + d5dc73d commit 3f1889a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/jenkinsci/plugins/github_branch_source/GithubAppCredentialsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public void testProviderRefresh() throws Exception {
290290

291291
// We want to demonstrate successful caching without waiting for the default 1 minute
292292
// Must set this to a large enough number to avoid flaky test
293-
GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 5;
293+
GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 10;
294294

295295
// Ensure we are working from sufficiently clean cache state
296296
Thread.sleep(Duration.ofSeconds(GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS + 2)
@@ -362,7 +362,7 @@ public void testAgentRefresh() throws Exception {
362362

363363
// We want to demonstrate successful caching without waiting for a the default 1 minute
364364
// Must set this to a large enough number to avoid flaky test
365-
GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 5;
365+
GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 10;
366366

367367
// Ensure we are working from sufficiently clean cache state
368368
Thread.sleep(Duration.ofSeconds(GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS + 2)
@@ -479,7 +479,7 @@ public void testPassword() throws Exception {
479479

480480
// We want to demonstrate successful caching without waiting for the default 1 minute
481481
// Must set this to a large enough number to avoid flaky test
482-
GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 5;
482+
GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 10;
483483

484484
// Ensure we are working from sufficiently clean cache state
485485
Thread.sleep(Duration.ofSeconds(GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS + 2)

0 commit comments

Comments
 (0)