Files
magpie/internal
yetone 2efb71ea0f tests: TestCursorEditorCopiedOncePerChange keeps its copy past a loaded runner's pause, not a 100ms linger that counts a third copy
The test set cursorSnapLinger to 100ms for the whole run, so a pause of
more than that between two reads (List after the change, then the next
visit) let the shared copy go and the next read made another: "copies
after one change: 3, want 2" in a go test -tags nogui ./... run on a Mac
at load average ~200. The linger is now an hour while copies are
counted and cut to 100ms only for the last check, that nothing is left
in the temp folder. It is set under cursorSnaps' lock, where the timers
read it.

Run: with a 300ms sleep injected before the visit after the change, the
old test fails with "copies after one change: 3, want 2"; the new one
passes with 300ms sleeps injected there and between the first two
visits. go test -race -count=5 of it and TestCursorLeftCopiesSwept;
go test -tags nogui ./internal/sessions (whole package, sandbox HOME);
gofmt -l; go vet darwin, GOOS=linux -tags nogui, GOOS=windows.
2026-10-15 00:03:24 +08:00
..
…
…