Browse Source

improve new test

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278375 13f79535-47bb-0310-9956-ffa450edef68
master
Steven M. Cohen 20 years ago
parent
commit
fc469f9318
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java

+ 2
- 2
src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java View File

@@ -829,7 +829,7 @@ public class FTPTest extends BuildFileTest{
public static class randomFailureFTP extends myRetryableFTP {
public randomFailureFTP() {
super(new Random(30000).nextInt());
super(new Random().nextInt(Short.MAX_VALUE));
}
}
public void testGetWithSelectorRetryable1() {
@@ -858,7 +858,7 @@ public class FTPTest extends BuildFileTest{
}
}
public void testGetWithSelectorRetryableRandom() {
getProject().addTaskDefinition("ftp", threeFailureFTP.class);
getProject().addTaskDefinition("ftp", randomFailureFTP.class);
try {
getProject().setProperty("ftp.retries", "forever");
getProject().executeTarget("ftp-get-with-selector-retryable");


Loading…
Cancel
Save