mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fix up some tests broken from a tidy up of exceptions.
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.algo.bytes.Access;
|
||||
import net.openhft.chronicle.algo.locks.AcquisitionStrategies;
|
||||
import net.openhft.chronicle.algo.locks.ReadWriteLockingStrategy;
|
||||
import net.openhft.chronicle.algo.locks.TryAcquireOperations;
|
||||
import net.openhft.chronicle.algo.locks.VanillaReadWriteWithWaitsLockingStrategy;
|
||||
import net.openhft.chronicle.bytes.Byteable;
|
||||
import net.openhft.chronicle.map.utility.ProcessInstanceLimiter;
|
||||
import net.openhft.chronicle.values.Array;
|
||||
import net.openhft.chronicle.values.Group;
|
||||
import net.openhft.chronicle.values.Values;
|
||||
@@ -229,14 +229,7 @@ public class CHMTest5 {
|
||||
}
|
||||
|
||||
public static void pause(long pause) {
|
||||
long start = System.currentTimeMillis();
|
||||
long elapsedTime;
|
||||
while ((elapsedTime = System.currentTimeMillis() - start) < pause) {
|
||||
try {
|
||||
Jvm.pause(pause - elapsedTime);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
}
|
||||
ProcessInstanceLimiter.pause(pause);
|
||||
}
|
||||
|
||||
public interface CHMTest5Data {
|
||||
|
||||
Reference in New Issue
Block a user