fix: ended page scopes start no timers; SSH transfers keep their connection from the idle sweep; linked files download whole; only the sent item unpacks on an SSH host, replace and skip as on a machine

This commit is contained in:
redtea committed 2026-10-15 22:05:04 +03:00
1 parent e05ff05015
commit 64ce8f2b72
7 files changed
+175 -52

No files matched your search

+10
View File
@@ -39,3 +39,13 @@ test('dropAction: other SSH user on the same host is another place', () => {
const b = {kind: 'ssh', id: 'm1|bob@h:22', label: 'bob@h'};
assert.strictEqual(U.dropAction({source: a, paths: ['/x'], dir: '/'}, {kind: 'term', source: b}).kind, 'deny');
});
test('scope: nothing new runs after it ended', async () => {
const s = U.scope();
let n = 0;
s.end();
s.timeout(() => n++, 1);
s.interval(() => n++, 1);
await new Promise(r => setTimeout(r, 20));
assert.strictEqual(n, 0);
});