fmt(js): `npm run fix` on merge (#84193)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
ed0e707914
commit
9da6d455c9
|
|
@ -86,7 +86,11 @@ test('manual flag survives the round trip and defaults false', () => {
|
|||
assert.equal(result.manual, true)
|
||||
|
||||
write(home, { ok: true, exit_code: 0, message: 'done', branch: 'main', finished_at: Math.floor(Date.now() / 1000) })
|
||||
assert.equal(readAndConsumeHandoffResult(home)?.manual, false, 'older writers without the field parse as manual:false')
|
||||
assert.equal(
|
||||
readAndConsumeHandoffResult(home)?.manual,
|
||||
false,
|
||||
'older writers without the field parse as manual:false'
|
||||
)
|
||||
})
|
||||
|
||||
test('an old manual result survives the freshness window but an old ordinary one does not', () => {
|
||||
|
|
|
|||
|
|
@ -3373,15 +3373,7 @@ async function applyUpdatesPosixHandoff(opts: any) {
|
|||
// best effort
|
||||
}
|
||||
|
||||
const args = [
|
||||
...handoff.args,
|
||||
'--install-root',
|
||||
updateRoot,
|
||||
'--branch',
|
||||
branch,
|
||||
'--desktop-pid',
|
||||
String(process.pid)
|
||||
]
|
||||
const args = [...handoff.args, '--install-root', updateRoot, '--branch', branch, '--desktop-pid', String(process.pid)]
|
||||
|
||||
// Relaunch target: the running .app bundle on mac (script swaps the
|
||||
// rebuilt bundle over it), the running binary elsewhere. The script's gate
|
||||
|
|
@ -3427,9 +3419,7 @@ async function applyUpdatesPosixHandoff(opts: any) {
|
|||
writeUpdateMarker(HERMES_HOME, child.pid)
|
||||
}
|
||||
|
||||
rememberLog(
|
||||
`[updates] launched posix hand-off: ${handoff.scriptPath} (branch ${branch}); quitting to hand off`
|
||||
)
|
||||
rememberLog(`[updates] launched posix hand-off: ${handoff.scriptPath} (branch ${branch}); quitting to hand off`)
|
||||
emitUpdateProgress({
|
||||
stage: 'restart',
|
||||
message:
|
||||
|
|
@ -3445,7 +3435,6 @@ async function applyUpdatesPosixHandoff(opts: any) {
|
|||
return { ok: true, handedOff: true, updater: handoff.scriptPath }
|
||||
}
|
||||
|
||||
|
||||
function readJson(filePath) {
|
||||
try {
|
||||
return JSON.parse(fs.readFileSync(filePath, 'utf8'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue