You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ma...@apache.org on 2009/10/04 15:52:11 UTC
svn commit: r821541 -
/incubator/ace/trunk/test/src/org/apache/ace/test/useradminconfigurator/ConfiguratorTest.java
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;