I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f9b2c771 authored by zzz's avatar zzz
Browse files

fix RateTest; includeAntRuntime=true for router tests

parent 6c7e913d
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ import junit.framework.TestCase; ...@@ -8,7 +8,7 @@ import junit.framework.TestCase;
public class RateTest extends TestCase { public class RateTest extends TestCase {
public void testRate() throws Exception{ public void testRate() throws Exception{
Rate rate = new Rate(1000); Rate rate = new Rate(5000);
for (int i = 0; i < 50; i++) { for (int i = 0; i < 50; i++) {
Thread.sleep(20); Thread.sleep(20);
rate.addData(i * 100, 20); rate.addData(i * 100, 20);
...@@ -26,4 +26,4 @@ public class RateTest extends TestCase { ...@@ -26,4 +26,4 @@ public class RateTest extends TestCase {
assertEquals(r, rate); assertEquals(r, rate);
} }
} }
\ No newline at end of file
...@@ -41,11 +41,13 @@ ...@@ -41,11 +41,13 @@
<compilerarg line="${javac.compilerargs}" /> <compilerarg line="${javac.compilerargs}" />
</javac> </javac>
</target> </target>
<target name="compileTest" depends="builddeptest"> <target name="compileTest" depends="builddeptest">
<mkdir dir="./build" /> <mkdir dir="./build" />
<mkdir dir="./build/obj" /> <mkdir dir="./build/obj" />
<!-- junit classes are in ant runtime -->
<javac srcdir="./src:./test" debug="true" source="1.5" target="1.5" deprecation="on" <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" > destdir="./build/obj" classpath="../../core/java/build/i2ptest.jar" >
<compilerarg line="${javac.compilerargs}" /> <compilerarg line="${javac.compilerargs}" />
</javac> </javac>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment