test: cut low-value tests, rewrite the rest around behavior, parallelize lanes (#285)

This commit is contained in:
sudacode authored and GitHub committed 2026-10-05 00:07:44 -07:00
1 parent 4b6842d034
commit b48083ddd8
368 files changed
+18045 -60331

No files matched your search

@@ -30,20 +30,6 @@ test('tick triggers a due auto-sync host with its saved direction', () => {
assert.deepEqual(triggered, [{ host: 'auto-box', direction: 'pull' }]);
});
test('tick does not require the resident app and stats writer to stop', () => {
const state = makeState();
const triggered: string[] = [];
const scheduler = createSyncAutoScheduler({
readState: () => state,
isRunning: () => false,
triggerHostSync: (host) => triggered.push(host),
nowMs: () => 100 * 60_000,
});
assert.doesNotThrow(() => scheduler.tick());
assert.deepEqual(triggered, ['auto-box']);
});
test('tick skips hosts synced more recently than the interval', () => {
let state = makeState();
state = recordSyncResult(state, 'auto-box', {