1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-29 23:42:06 +01:00

Add func-test target: will be run by Anthill

one more timing tweak to RosterTest

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2996 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Marilyn Daum 2005-10-25 17:14:52 +00:00 committed by marilyn
parent 922ae8688b
commit 03b8362dd2
2 changed files with 16 additions and 1 deletions

View file

@ -204,6 +204,14 @@
</target> </target>
<!-- test -->
<!-- ======================================================================================= -->
<target name="func-test" depends="compile, jar-test" unless="no.test">
<antcall target="test.messenger"/>
<antcall target="test"/>
</target>
<!-- test --> <!-- test -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<target name="test" depends="compile, jar-test" unless="no.test"> <target name="test" depends="compile, jar-test" unless="no.test">

View file

@ -531,6 +531,13 @@ public class RosterTest extends SmackTestCase {
fail(e.getMessage()); fail(e.getMessage());
} }
} }
try {
Thread.sleep(1500);
}
catch (InterruptedException e) {
fail(e.getMessage());
}
// Wait up to 2 seconds to receive roster removal notifications // Wait up to 2 seconds to receive roster removal notifications
long initial = System.currentTimeMillis(); long initial = System.currentTimeMillis();
while (System.currentTimeMillis() - initial < 2000 && while (System.currentTimeMillis() - initial < 2000 &&
@ -597,7 +604,7 @@ public class RosterTest extends SmackTestCase {
try { try {
Thread.sleep(500); Thread.sleep(500);
} }
catch (Exception e) { catch (InterruptedException e) {
fail(e.getMessage()); fail(e.getMessage());
} }