[HHH-5545] (Resolve query cache results not up to date testsuite failures)

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20327 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Galder Zamarreno 2010-09-09 08:03:31 +00:00
parent c11a297420
commit df6072d2e5
1 changed files with 10 additions and 0 deletions

View File

@ -262,6 +262,11 @@ public class BasicTransactionalTestCase extends SingleNodeTestCase {
commitOrRollbackTx();
}
// Delay added to guarantee that query cache results won't be considered
// as not up to date due to persist session and query results from first
// query happening within same 100ms gap.
Thread.sleep(100);
beginTx();
try {
s = openSession();
@ -305,6 +310,11 @@ public class BasicTransactionalTestCase extends SingleNodeTestCase {
commitOrRollbackTx();
}
// Delay added to guarantee that query cache results won't be considered
// as not up to date due to persist session and query results from first
// query happening within same 100ms gap.
Thread.sleep(100);
beginTx();
try {
s = openSession();