Merge remote-tracking branch 'origin/master'

This commit is contained in:
Peter Lawrey
2014-11-11 18:44:14 +00:00
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>chronicle-map</artifactId>
<version>2.0.9b-SNAPSHOT</version>
<version>2.0.11b-SNAPSHOT</version>
<name>OpenHFT/Chronicle-Map</name>
<description>Chronicle-Map</description>
@@ -235,6 +235,12 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable {
if (closeables != null)
closeables.closeQuietly();
closeables = null;
try {
// give time to close
Thread.sleep(100);
} catch (InterruptedException e) {
//
}
}
/**
@@ -561,7 +561,7 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
/**
* size returns the correct values
*/
@Test(timeout = 5000)
@Test(timeout = 10000)
public void testSize2() throws IOException {
try (ChronicleMap map = map5(8076)) {
@@ -619,7 +619,7 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
*/
@Test(timeout = 5000)
public void testContainsKey_NullPointerException() throws IOException {
try (ChronicleMap c = newShmIntString(8079)) {
try (ChronicleMap c = newShmIntString(8076)) {
c.containsKey(null);
shouldThrow();
} catch (NullPointerException success) {