From 03b8362dd26eaf0de0673f1792b8f1160a1f94e5 Mon Sep 17 00:00:00 2001 From: Marilyn Daum Date: Tue, 25 Oct 2005 17:14:52 +0000 Subject: [PATCH] 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 --- build/build.xml | 8 ++++++++ test/org/jivesoftware/smack/RosterTest.java | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/build/build.xml b/build/build.xml index 3d4884883..4684d6bdd 100644 --- a/build/build.xml +++ b/build/build.xml @@ -204,6 +204,14 @@ + + + + + + + + diff --git a/test/org/jivesoftware/smack/RosterTest.java b/test/org/jivesoftware/smack/RosterTest.java index cf2eb0eee..edc5d5f51 100644 --- a/test/org/jivesoftware/smack/RosterTest.java +++ b/test/org/jivesoftware/smack/RosterTest.java @@ -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()); }