From 8a800a1bc0f5091f2e84198a130d045381bf9c89 Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Mon, 21 Nov 2011 20:04:41 +0800 Subject: [PATCH] HHH-6827 correct timeout in BaseRegion --- .../src/main/java/org/hibernate/testing/cache/BaseRegion.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-testing/src/main/java/org/hibernate/testing/cache/BaseRegion.java b/hibernate-testing/src/main/java/org/hibernate/testing/cache/BaseRegion.java index b7ce4858c5..30b1ddc2df 100644 --- a/hibernate-testing/src/main/java/org/hibernate/testing/cache/BaseRegion.java +++ b/hibernate-testing/src/main/java/org/hibernate/testing/cache/BaseRegion.java @@ -37,6 +37,7 @@ import org.hibernate.cache.spi.Region; class BaseRegion implements Region { protected final Map cache = new ConcurrentHashMap(); private final String name; + private static int timeout = Timestamper.ONE_MS * 60000; //60s BaseRegion(String name) { this.name = name; @@ -84,7 +85,7 @@ class BaseRegion implements Region { @Override public int getTimeout() { - return Timestamper.ONE_MS * 600000; + return timeout; } }