Add AC/BC RTCP programs and 3D machine manager
This commit is contained in:
@@ -20,6 +20,15 @@ assert.equal(fast.tick, 10);
|
||||
const restored = new SimScheduler(core, { budget: 100 });
|
||||
assert.equal(restored.restore(fast.export()).state_hash, fast.hash());
|
||||
|
||||
const interrupted = new SimScheduler(core, { budget: 100 });
|
||||
assert.throws(() => interrupted.step(10, { motion: (tick) => { if (tick === 3) throw new Error("injected_motion_fault"); } }), /injected_motion_fault/);
|
||||
assert.equal(interrupted.tick, 3);
|
||||
assert.equal(interrupted.last_cycles, 3);
|
||||
const afterFault = [];
|
||||
interrupted.step(2, { motion: (tick) => afterFault.push(tick) });
|
||||
assert.deepEqual(afterFault, [4, 5]);
|
||||
assert.equal(interrupted.tick, 5);
|
||||
|
||||
let lastSeq = 0;
|
||||
const session = new SimSession({
|
||||
_sim_protocol_reset() {},
|
||||
|
||||
Reference in New Issue
Block a user