mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 00:57:45 +00:00
test: remove redundant preflight filesystem filtering case (#29502)
* test: preserve ready PR guards under draft admission policy * test: use activation tab contract in mirror overlap proof * test: replace copied IPC inventories with registration lifecycle proof * fix: combine duplicate host imports to restore lint gate * test: remove preflight filter duplicate with stronger resolver proof --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { chmod, mkdir, mkdtemp, readFile, writeFile } from 'node:fs/promises'
|
||||
import { mkdir, mkdtemp, readFile, writeFile } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import path from 'node:path'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
@@ -112,21 +112,6 @@ describe.skipIf(process.platform === 'win32')(
|
||||
expect(await probedArgs(second)).toEqual(['--version'])
|
||||
})
|
||||
|
||||
it('skips directories and non-executable files before a working copy', async () => {
|
||||
const directory = path.join(root, 'directory')
|
||||
await mkdir(path.join(directory, COMMAND), { recursive: true })
|
||||
const plain = await cliInDirectory('plain')
|
||||
await chmod(path.join(plain, COMMAND), 0o644)
|
||||
const good = await cliInDirectory('good')
|
||||
vi.stubEnv('PATH', [directory, plain, good].join(path.delimiter))
|
||||
|
||||
await expect(findRunnableLocalCommand(COMMAND)).resolves.toEqual({
|
||||
status: 'available',
|
||||
binary: path.join(good, COMMAND)
|
||||
})
|
||||
expect(await probedArgs(plain)).toEqual([])
|
||||
})
|
||||
|
||||
it('never substitutes another binary for an explicit failing path', async () => {
|
||||
const shim = await cliInDirectory('shim', BROKEN_SHIM)
|
||||
const good = await cliInDirectory('good')
|
||||
|
||||
Reference in New Issue
Block a user