tryequipo: point the test helper at pinExecutable's ForkLock
Also the one-package change used to measure CI with the test cache: only internal/tryequipo's test binary changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+1
−1
internal/tryequipo/accounts_test.go+1 −1
CI passed — run details
Intent
diff --git a/internal/tryequipo/accounts_test.go b/internal/tryequipo/accounts_test.go| index 3e26fa77..c4419e23 100644 |
| --- a/internal/tryequipo/accounts_test.go |
| +++ b/internal/tryequipo/accounts_test.go |
| @@ -210,7 +210,7 @@ func TestSavedSetupValueCanBeCorrected(t *testing.T) { |
| // Parallel tests fork constantly; a child forked while the file is open |
| // for writing keeps it open until it execs, and running the file in that |
| // window fails with "text file busy". ForkLock keeps forks out until the |
| -// file is closed. |
| +// file is closed. pinExecutable does the same for the wizard's own copies. |
| func writeExecutable(path string, data []byte, perm os.FileMode) error { |
| syscall.ForkLock.RLock() |
| defer syscall.ForkLock.RUnlock() |