Author: ngn
Date: Sun Dec  6 21:05:10 2009
New Revision: 887772

URL: http://svn.apache.org/viewvc?rev=887772&view=rev
Log:
Extend the time allowed during the test. First run will initiate NodePrep which 
takes about 1 second on the first run meaning the test would fail frequently

Modified:
    
mina/sandbox/vysper/trunk/server/core/src/test/java/org/apache/vysper/stanzasession/StanzaSessionTestCase.java

Modified: 
mina/sandbox/vysper/trunk/server/core/src/test/java/org/apache/vysper/stanzasession/StanzaSessionTestCase.java
URL: 
http://svn.apache.org/viewvc/mina/sandbox/vysper/trunk/server/core/src/test/java/org/apache/vysper/stanzasession/StanzaSessionTestCase.java?rev=887772&r1=887771&r2=887772&view=diff
==============================================================================
--- 
mina/sandbox/vysper/trunk/server/core/src/test/java/org/apache/vysper/stanzasession/StanzaSessionTestCase.java
 (original)
+++ 
mina/sandbox/vysper/trunk/server/core/src/test/java/org/apache/vysper/stanzasession/StanzaSessionTestCase.java
 Sun Dec  6 21:05:10 2009
@@ -100,7 +100,7 @@
 
     private Stanza waitForStanza(StanzaSession session) {
         long inTime = System.currentTimeMillis();
-        while (System.currentTimeMillis() < inTime + 1000) {
+        while (System.currentTimeMillis() < inTime + 10000) {
             Stanza stanza = session.poll();
             if (stanza != null) return stanza;
             try { Thread.sleep(10); } catch (InterruptedException e) { 
e.printStackTrace(); }


Reply via email to