the moveWhileDestinationIsEdited test helper should wait for the script when its editor fails #141
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?
At
1a85c77, themoveWhileDestinationIsEditedtest helper can throw before it awaits the script. The calling test then deletes the fixture while the script is still running.The helper starts the script (
running, line 485), then opens an editor connection with a 5 s busy timeout and runsBEGIN IMMEDIATE(lines 490-493). If that fails with a lock error, or the edit statement throws, thefinallycloses the editor and the exception propagates.return await running(line 500) is never reached.Its three callers (lines 1918, 1939 and 1966) remove the fixture in their own
finally. A script still running against a removed fixture can makermSyncfail withENOTEMPTYor leave the run hanging.The sibling helper
moveWithHistoryEditAfterStateCopy(lines 504-524) awaitsrunningin itsfinally(line 521). It has that guard because its test showed this failure while #133 was in review: a lock error in the helper, thenENOTEMPTYon fixture removal. The same guard inmoveWhileDestinationIsEditedwould close the gap.Evidence: code read. Not reproduced in 20 parallel runs.
move-codex-sessioneditor helper should wait for the script #146