diff --git a/src/test/java/org/jenkinsci/plugins/github_branch_source/GithubAppCredentialsTest.java b/src/test/java/org/jenkinsci/plugins/github_branch_source/GithubAppCredentialsTest.java index 071c164aa..b73219d03 100644 --- a/src/test/java/org/jenkinsci/plugins/github_branch_source/GithubAppCredentialsTest.java +++ b/src/test/java/org/jenkinsci/plugins/github_branch_source/GithubAppCredentialsTest.java @@ -290,7 +290,7 @@ public void testProviderRefresh() throws Exception { // We want to demonstrate successful caching without waiting for the default 1 minute // Must set this to a large enough number to avoid flaky test - GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 5; + GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 10; // Ensure we are working from sufficiently clean cache state Thread.sleep(Duration.ofSeconds(GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS + 2) @@ -362,7 +362,7 @@ public void testAgentRefresh() throws Exception { // We want to demonstrate successful caching without waiting for a the default 1 minute // Must set this to a large enough number to avoid flaky test - GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 5; + GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 10; // Ensure we are working from sufficiently clean cache state Thread.sleep(Duration.ofSeconds(GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS + 2) @@ -479,7 +479,7 @@ public void testPassword() throws Exception { // We want to demonstrate successful caching without waiting for the default 1 minute // Must set this to a large enough number to avoid flaky test - GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 5; + GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS = 10; // Ensure we are working from sufficiently clean cache state Thread.sleep(Duration.ofSeconds(GitHubAppCredentials.AppInstallationToken.NOT_STALE_MINIMUM_SECONDS + 2)