mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Tune the pausers
This commit is contained in:
@@ -40,6 +40,7 @@ import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class TCPSocketReplicationNativeTest {
|
||||
|
||||
Set<Thread> threads;
|
||||
private ChronicleMap<Integer, LongValue> map1;
|
||||
private ChronicleMap<Integer, LongValue> map2;
|
||||
|
||||
@@ -65,7 +66,8 @@ public class TCPSocketReplicationNativeTest {
|
||||
|
||||
for (final Closeable closeable : new Closeable[]{map1, map2}) {
|
||||
try {
|
||||
closeable.close();
|
||||
if (closeable != null)
|
||||
closeable.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@@ -73,8 +75,6 @@ public class TCPSocketReplicationNativeTest {
|
||||
System.gc();
|
||||
}
|
||||
|
||||
Set<Thread> threads;
|
||||
|
||||
@Before
|
||||
public void sampleThreads() {
|
||||
threads = Thread.getAllStackTraces().keySet();
|
||||
|
||||
Reference in New Issue
Block a user