From 2359316d2f7b5b8aeb3595d66bd6c3402f83361a Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 11 Sep 2023 11:07:57 -0400 Subject: [PATCH] Skip `quietPeriod` in `SCMRetrieverTest` --- .../jenkinsci/plugins/workflow/libs/SCMRetrieverTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/jenkinsci/plugins/workflow/libs/SCMRetrieverTest.java b/src/test/java/org/jenkinsci/plugins/workflow/libs/SCMRetrieverTest.java index fb0c65c3..d0fbbff7 100644 --- a/src/test/java/org/jenkinsci/plugins/workflow/libs/SCMRetrieverTest.java +++ b/src/test/java/org/jenkinsci/plugins/workflow/libs/SCMRetrieverTest.java @@ -41,6 +41,7 @@ import org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject; import org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProjectTest; import org.jenkinsci.plugins.workflow.test.steps.SemaphoreStep; +import org.junit.Before; import org.junit.ClassRule; import org.junit.Test; import org.junit.Rule; @@ -55,6 +56,10 @@ public class SCMRetrieverTest { @Rule public JenkinsRule r = new JenkinsRule(); @Rule public GitSampleRepoRule sampleRepo = new GitSampleRepoRule(); + @Before public void doNotWait() { + r.setQuietPeriod(0); + } + @Url("https://stackoverflow.com/a/49112612/12916") @Test public void selfTestLibraries() throws Exception { sampleRepo.init();