forked from I2P_Developers/i2p.i2p
fix RateTest; includeAntRuntime=true for router tests
This commit is contained in:
@@ -8,7 +8,7 @@ import junit.framework.TestCase;
|
||||
|
||||
public class RateTest extends TestCase {
|
||||
public void testRate() throws Exception{
|
||||
Rate rate = new Rate(1000);
|
||||
Rate rate = new Rate(5000);
|
||||
for (int i = 0; i < 50; i++) {
|
||||
Thread.sleep(20);
|
||||
rate.addData(i * 100, 20);
|
||||
@@ -26,4 +26,4 @@ public class RateTest extends TestCase {
|
||||
|
||||
assertEquals(r, rate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -41,11 +41,13 @@
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="compileTest" depends="builddeptest">
|
||||
<mkdir dir="./build" />
|
||||
<mkdir dir="./build/obj" />
|
||||
<!-- junit classes are in ant runtime -->
|
||||
<javac srcdir="./src:./test" debug="true" source="1.5" target="1.5" deprecation="on"
|
||||
includeAntRuntime="false"
|
||||
includeAntRuntime="true"
|
||||
destdir="./build/obj" classpath="../../core/java/build/i2ptest.jar" >
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
|
Reference in New Issue
Block a user