mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 16:02:50 +00:00
test(updater): assert stale recovery stays silent
This commit is contained in:
@@ -318,10 +318,11 @@ describe('linux package recovery actions', () => {
|
||||
const pending = updater.getLinuxPackageInstallInstructions()
|
||||
getTrackedLinuxPackageArtifactMock.mockReturnValue({ ...ARTIFACT })
|
||||
await activateRecovery(updater)
|
||||
const statusesBefore = errorStatuses(send).length
|
||||
settleValidation({ ok: true, command: 'stale command', packageFileName: 'stale.deb' })
|
||||
|
||||
await expect(pending).rejects.toThrow('Package install recovery is no longer current.')
|
||||
expect(errorStatuses(send)).toHaveLength(2)
|
||||
expect(errorStatuses(send)).toHaveLength(statusesBefore)
|
||||
})
|
||||
|
||||
it('does not reveal a stale path after a same-version recapture', async () => {
|
||||
|
||||
Reference in New Issue
Block a user