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>
<!-- test -->
<!-- ======================================================================================= -->
<target name="func-test" depends="compile, jar-test" unless="no.test">
<antcall target="test.messenger"/>
<antcall target="test"/>
</target>
<!-- 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());
}
}
try {
Thread.sleep(1500);
}
catch (InterruptedException e) {
fail(e.getMessage());
}
// Wait up to 2 seconds to receive roster removal notifications
long initial = System.currentTimeMillis();
while (System.currentTimeMillis() - initial < 2000 &&
@ -597,7 +604,7 @@ public class RosterTest extends SmackTestCase {
try {
Thread.sleep(500);
}
catch (Exception e) {
catch (InterruptedException e) {
fail(e.getMessage());
}