avoid a hang

This commit is contained in:
Kohsuke Kawaguchi committed 2011-03-28 19:19:46 -07:00
1 parent 82ded4d675
commit a6520d813e
1 file changed
+4
@@ -1457,6 +1457,10 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
public void contextReleased(Context cx) {
}
});
// avoid a hang by setting a time out. It should be long enough to prevent
// false-positive timeout on slow systems
setTimeout(60*1000);
}
/**