[hibernate-commits] Hibernate SVN: r18674 - search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Sun Jan 31 16:50:24 EST 2010
Author: stliu
Date: 2010-01-31 16:50:23 -0500 (Sun, 31 Jan 2010)
New Revision: 18674
Modified:
search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider/FSSlaveAndMasterDPTest.java
Log:
JBPAPP-3073 Test FSSlaveAndMasterDPTest fails because it needs more time to process copies
Modified: search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider/FSSlaveAndMasterDPTest.java
===================================================================
--- search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider/FSSlaveAndMasterDPTest.java 2010-01-30 17:27:32 UTC (rev 18673)
+++ search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider/FSSlaveAndMasterDPTest.java 2010-01-31 21:50:23 UTC (rev 18674)
@@ -75,11 +75,11 @@
session.persist( sn );
tx.commit();
session.close();
-
- int waitPeriodMilli = 2010; // wait a bit more than 2 refresh periods (one master / one slave) - 2 * 1 * 1000 + 10
+ //JBPAPP-3073 : change the wait time to 2010*2
+ int waitPeriodMilli = 2010*2; // wait a bit more than 2 refresh periods (one master / one slave) - 2 * 1 * 1000 + 10
Thread.sleep( waitPeriodMilli );
- // assert that the master hass indexed the snowstorm
+ // assert that the master has indexed the snowstorm
fullTextSession = Search.createFullTextSession( getMasterSession() );
tx = fullTextSession.beginTransaction();
result = fullTextSession.createFullTextQuery( parser.parse( "location:dallas" ) ).list();
More information about the hibernate-commits
mailing list