mirror of
https://github.com/stablyai/orca.git
synced 2026-10-12 16:03:03 +00:00
chore: remove stray screenshot and harden daemon getCwd test
- drop orca-before-split.png accidentally committed in the Wip commit - accept null OR string from getCwd in the daemon test, since the new terminal-host fallback calls resolveProcessCwd(pid) and the mock pid 55555 could resolve against a live process on CI Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 104 KiB |
@@ -171,8 +171,12 @@ describe('DaemonServer', () => {
|
||||
sessionId: 'test-session'
|
||||
})
|
||||
|
||||
// Mock subprocess doesn't emit OSC-7, so cwd is null
|
||||
expect(result.cwd).toBeNull()
|
||||
// Mock subprocess doesn't emit OSC-7. The terminal-host fallback then
|
||||
// calls resolveProcessCwd(55555); on CI that pid is almost always dead
|
||||
// so the result is null, but we accept string too — a recycled pid that
|
||||
// happens to match would legitimately return a path and we don't want
|
||||
// this test to flake on whatever happens to be running on the host.
|
||||
expect(result.cwd === null || typeof result.cwd === 'string').toBe(true)
|
||||
})
|
||||
|
||||
it('returns error for unknown session operations', async () => {
|
||||
|
||||
Reference in New Issue
Block a user