Verify packet PTT readiness and isolate manual VHF forwarding status
This commit is contained in:
1 parent
9bb62cf731
commit
abfc8be078
7 files changed
+16
-7
No files matched your search
@@ -37,3 +37,9 @@ test('manual forwarding shares the queue, disables timers only during use and re
|
||||
assert.equal(client.job.restoring,false);assert.deepEqual(rawProfile(await readFile(file,'utf8'),'N0TEST'),original);assert.equal(fw.lockedPeers.has('N0TEST'),false);
|
||||
}finally{clearInterval(client.timer);await rm(dir,{recursive:true,force:true});}
|
||||
});
|
||||
|
||||
test('a manual VHF session occupies one route and reserves its HF partner',()=>{
|
||||
const client={job:{peer:'N0TEST',channel:{id:'N0TEST-VHF'},original,startedAt:'2026-10-16T22:00:00Z',restoring:true},config:{ports:[{id:1,driver:'VARA'}]},profiles:()=>[{call:'N0TEST-VHF',active:true}]};
|
||||
const rows=ManualForwarding.prototype.displayProfiles.call(client,[{call:'N0TEST',active:true,history:[{startedAt:'2026-10-16T22:00:01Z'}]}]);
|
||||
assert.equal(rows.filter(p=>p.active).length,1);assert.equal(rows[0].port,1);assert.equal(rows[0].reservedBy,'N0TEST-VHF');assert.equal(rows[0].history.length,0);
|
||||
});
|
||||
Reference in new issue
Block a user