test: isolate utility process database permissions
Cross-platform packages / Validate source (push) Canceled after 0s
Cross-platform packages / Authorize desktop packaging (push) Canceled after 0s
Cross-platform packages / linux arm64 (push) Canceled after 0s
Cross-platform packages / macos arm64 (push) Canceled after 0s
Cross-platform packages / windows arm64 (push) Canceled after 0s
Cross-platform packages / linux x64 (push) Canceled after 0s
Cross-platform packages / macos x64 (push) Canceled after 0s
Cross-platform packages / windows x64 (push) Canceled after 0s
Cross-platform packages / Publish GitHub and OSS release (push) Canceled after 0s

This commit is contained in:
mesalogo
2026-10-07 23:26:37 +08:00
parent 9212fd4359
commit 7eb51bd5ff
3 changed files with 8 additions and 3 deletions
@@ -12,6 +12,7 @@ import { MAGIC_NOTE_MAX_VIDEO_BYTES, type MagicNoteContent } from '../shared/mag
import { createHash } from 'node:crypto'
const root = process.env.GB_STORAGE_TEST_ROOT!
process.umask(0o077)
app.setPath('userData', join(root, 'electron'))
async function run(): Promise<void> {
+6 -3
View File
@@ -255,9 +255,12 @@ describe('assistant readonly worker', () => {
const inFlight = reader.call('listConversationSummaries', [[conversations[3]!.id]])
await reader.terminateWorkerForTest()
// A fast worker may commit the response before termination; the
// dedicated crash tests cover rejection when failure wins the race.
await expect(inFlight).resolves.toEqual(expected[1])
// Termination races the response. Either outcome is valid here; the
// dedicated crash tests cover deterministic rejection propagation.
await inFlight.then(
result => expect(result).toEqual(expected[1]),
error => expect(error).toBeInstanceOf(ReadonlyWorkerUnavailableError),
)
} finally { database.close() }
}, 60_000)