mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-25 03:34:22 +01:00
ignore: fix acp test (#3339)
This commit is contained in:
@@ -3,7 +3,7 @@ import { spawn } from "child_process"
|
||||
|
||||
describe("ACP Server", () => {
|
||||
test("initialize and shutdown", async () => {
|
||||
const proc = spawn("bun", ["run", "--conditions=development", "src/index.ts", "acp"], {
|
||||
const proc = spawn("bun", ["run", "dev", "acp"], {
|
||||
cwd: process.cwd(),
|
||||
stdio: ["pipe", "pipe", "pipe"],
|
||||
env: { ...process.env, OPENCODE: "1" },
|
||||
@@ -27,6 +27,9 @@ describe("ACP Server", () => {
|
||||
}
|
||||
})
|
||||
|
||||
// Wait for server to be ready
|
||||
await new Promise((resolve) => setTimeout(resolve, 500))
|
||||
|
||||
proc.stdin.write(
|
||||
encoder.encode(
|
||||
JSON.stringify({
|
||||
@@ -48,7 +51,7 @@ describe("ACP Server", () => {
|
||||
}, 10000)
|
||||
|
||||
test("create session", async () => {
|
||||
const proc = spawn("bun", ["run", "--conditions=development", "src/index.ts", "acp"], {
|
||||
const proc = spawn("bun", ["run", "dev", "acp"], {
|
||||
cwd: process.cwd(),
|
||||
stdio: ["pipe", "pipe", "pipe"],
|
||||
env: { ...process.env, OPENCODE: "1" },
|
||||
|
||||
Reference in New Issue
Block a user