[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:
parent
c11a297420
commit
df6072d2e5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue