incubator-ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r821541 - /incubator/ace/trunk/test/src/org/apache/ace/test/useradminconfigurator/ConfiguratorTest.java
Date Sun, 04 Oct 2009 13:52:11 GMT
Author: marrs
Date: Sun Oct  4 13:52:10 2009
New Revision: 821541

URL: http://svn.apache.org/viewvc?rev=821541&view=rev
Log:
Extended a timeout and added a check when committing test data in an attempt to see if this
test fails on the server purely because of timing.

Modified:
    incubator/ace/trunk/test/src/org/apache/ace/test/useradminconfigurator/ConfiguratorTest.java

Modified: incubator/ace/trunk/test/src/org/apache/ace/test/useradminconfigurator/ConfiguratorTest.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/test/src/org/apache/ace/test/useradminconfigurator/ConfiguratorTest.java?rev=821541&r1=821540&r2=821541&view=diff
==============================================================================
--- incubator/ace/trunk/test/src/org/apache/ace/test/useradminconfigurator/ConfiguratorTest.java
(original)
+++ incubator/ace/trunk/test/src/org/apache/ace/test/useradminconfigurator/ConfiguratorTest.java
Sun Oct  4 13:52:10 2009
@@ -70,17 +70,17 @@
             "    </user>" +
             "</roles>").getBytes());
 
-        m_repository.commit(bis, m_repository.getRange().getHigh());
+        assert m_repository.commit(bis, m_repository.getRange().getHigh()) : "Committing
test user data failed.";
 
         User user = (User) m_userAdmin.getRole("TestUser");
         int count = 0;
-        while ((user == null) && (count < 16)) {
+        while ((user == null) && (count < 60)) {
             Thread.sleep(250);
             user = (User) m_userAdmin.getRole("TestUser");
             count++;
         }
         if (user == null) {
-            assert false : "Even after four seconds, our user is not present.";
+            assert false : "Even after fifteen seconds, our user is not present.";
         }
 
         boolean foundPassword = false;



Mime
View raw message