Tests: route fuzz compares the customer catalog, day steps waits longer for its trial

A new customer type changes which offers a seeded late-game draws, so the
fuzz games cannot play move for move like main (as with a world change), and
the sales-trial race in day-steps comes on day 46 instead of before day 20.
This commit is contained in:
Frederic Jung 2026-11-10 07:14:36 +00:00
parent e51510a115
commit d8223bad04
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View file

@ -189,7 +189,8 @@ test('a customer dropped while a sales trial routes: the trial runs again on the
p.ev(TICK_ERR);
p.ev("window.__ot=0;const ot=offerTrial;offerTrial=(...a)=>{__ot++;return ot(...a);};");
let found = false;
for (let d = 0; d < 20 && !found; d++) {
// Which day such a trial comes depends on the offers the seeded game draws (day 46 since latency contracts joined them).
for (let d = 0; d < 60 && !found; d++) {
p.ev('rwDay()');
for (let k = 0; k < 400 && p.ev('!!RW.job'); k++) {
if (p.ev('__later.length')) { p.ev('__later.shift()()'); continue; }