[bug] gauntlet panics when a preset has more players than the 6-entry roster #151
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while running the suite for #149; reproduces on clean master (
ba9395d): TestTinyBenchWritesIterationLog panics with "slice bounds out of range [:8] with capacity 6" at bench.go:300 — the specialist gauntlet builds roster = [spec, spec, mains...] (2 + 4 = 6 entries) and then slices roster[:cfg.Players], so any preset with Players > 6 panics. The roster should be padded (e.g. cycle the mains) up to cfg.Players before the slice.