Bulk PNI test fills the ports now that caches share them (#252)

This commit is contained in:
Frederic Jung 2026-11-01 11:32:27 +01:00
parent 533532ba32
commit 6b8791c605
No known key found for this signature in database

View file

@ -47,7 +47,7 @@ test('bulk PNIs skip router speed, port capacity and policy restrictions with ci
const { dom, ev, errors } = load();
setup(ev, ['ams', 'lon', 'ash']);
ev(`S.pops.fra.rgen=0;S.pops.ams.rgen=1;
S.caches=Array.from({length:portsMax('ams')},()=>({id:uid(),city:'ams',net:'cfl'}));
S.caches=Array.from({length:portsMax('ams')*cachePerPort('ams')},()=>({id:uid(),city:'ams',net:'cfl'}));
while(['ams','lon'].some(c=>snub('msf',c)?.all))S.asn++;
compute();R.demTo.msf=1e4;ACT.pniAllOpen({net:'msf'});ACT.pniAllSize({v:'2'})`);
assert.equal(ev("pniBatch('msf',2).orders.length"), 1);