/** * Simulated time wait for a cluster. This is intended for internal testing */ public static void advanceClusterTime(ILocalCluster cluster, Integer secs, Integer step) throws InterruptedException { cluster.advanceClusterTime(secs, step); }
/** * If using simulated time simulate waiting for 10 seconds. This is intended for internal testing only. */ public static void simulateWait(ILocalCluster cluster) throws InterruptedException { if (Time.isSimulating()) { cluster.advanceClusterTime(10); Thread.sleep(100); } }
cluster.advanceClusterTime(11);
cluster.advanceClusterTime(TICK_INTERVAL_SECS); waitForTicks(1); cluster.advanceClusterTime(TICK_INTERVAL_SECS); waitForTicks(2); cluster.advanceClusterTime(TICK_INTERVAL_SECS); waitForTicks(3); } catch (ConditionTimeoutException e) {