Skip to content

Commit a79aafa

Browse files
committed
Suppressing FolderLibrariesTest.classCastException on Windows
1 parent a1612bb commit a79aafa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/org/jenkinsci/plugins/workflow/libs/FolderLibrariesTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import com.gargoylesoftware.htmlunit.html.HtmlTextArea;
3333
import com.gargoylesoftware.htmlunit.util.NameValuePair;
3434
import com.google.common.collect.ImmutableMap;
35+
import hudson.Functions;
3536
import hudson.model.Item;
3637
import hudson.model.Result;
3738
import hudson.plugins.git.GitSCM;
@@ -54,6 +55,7 @@
5455
import org.jenkinsci.plugins.workflow.job.WorkflowRun;
5556
import org.junit.Test;
5657
import static org.junit.Assert.*;
58+
import static org.junit.Assume.assumeFalse;
5759
import org.junit.ClassRule;
5860
import org.junit.Rule;
5961
import org.jvnet.hudson.test.BuildWatcher;
@@ -188,6 +190,7 @@ public class FolderLibrariesTest {
188190

189191
@Issue("JENKINS-43019")
190192
@Test public void classCastException() throws Exception {
193+
assumeFalse("Too slow, prone to timing out before getting to build #51", Functions.isWindows());
191194
sampleRepo1.init();
192195
sampleRepo1.write("src/pkg/Obj.groovy", "package pkg; public class Obj implements Serializable {public Obj() {}}");
193196
sampleRepo1.write("vars/objs.groovy", "@groovy.transform.Field final pkg.Obj OBJ = new pkg.Obj()");

0 commit comments

Comments
 (0)