Skip to content

Commit 4e3d70a

Browse files
committed
Set tests timeout to 15 minutes
1 parent 18a3f4a commit 4e3d70a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecoratorWindowsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public void after() throws Exception {
161161
}
162162

163163
@Test
164-
@WithTimeout(value = 0)
164+
@WithTimeout(value = 900) // in case we need to pull windows docker image
165165
public void testCommandExecution() throws Exception {
166166
ByteArrayOutputStream output = new ByteArrayOutputStream();
167167
ProcReturn r = execCommandInContainer("container", null, false, output, "where", "cmd.exe");
@@ -171,15 +171,15 @@ public void testCommandExecution() throws Exception {
171171
}
172172

173173
@Test
174-
@WithTimeout(value = 0)
174+
@WithTimeout(value = 900) // in case we need to pull windows docker image
175175
public void testCommandExecutionNoOutput() throws Exception {
176176
ProcReturn r = execCommandInContainer("container", null, false, null, "where", "cmd.exe");
177177
assertEquals(0, r.exitCode);
178178
assertFalse(r.proc.isAlive());
179179
}
180180

181181
@Test
182-
@WithTimeout(value = 0)
182+
@WithTimeout(value = 900) // in case we need to pull windows docker image
183183
public void testQuietCommandExecution() throws Exception {
184184
ByteArrayOutputStream output = new ByteArrayOutputStream();
185185
ProcReturn r = execCommandInContainer("container", null, true, output, "echo", "pid is 9999");

0 commit comments

Comments
 (0)