mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:41:23 +00:00
chore: rename project to clawdbot
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { createClawdisTools } from "../agents/clawdis-tools.js";
|
||||
import { createClawdbotTools } from "../agents/clawdbot-tools.js";
|
||||
import { resolveSessionTranscriptPath } from "../config/sessions.js";
|
||||
import { emitAgentEvent } from "../infra/agent-events.js";
|
||||
import {
|
||||
@@ -16,8 +16,8 @@ installGatewayTestHooks();
|
||||
describe("sessions_send gateway loopback", () => {
|
||||
it("returns reply when job finishes before agent.wait", async () => {
|
||||
const port = await getFreePort();
|
||||
const prevPort = process.env.CLAWDIS_GATEWAY_PORT;
|
||||
process.env.CLAWDIS_GATEWAY_PORT = String(port);
|
||||
const prevPort = process.env.CLAWDBOT_GATEWAY_PORT;
|
||||
process.env.CLAWDBOT_GATEWAY_PORT = String(port);
|
||||
|
||||
const server = await startGatewayServer(port);
|
||||
const spy = vi.mocked(agentCommand);
|
||||
@@ -71,7 +71,7 @@ describe("sessions_send gateway loopback", () => {
|
||||
});
|
||||
|
||||
try {
|
||||
const tool = createClawdisTools().find(
|
||||
const tool = createClawdbotTools().find(
|
||||
(candidate) => candidate.name === "sessions_send",
|
||||
);
|
||||
if (!tool) throw new Error("missing sessions_send tool");
|
||||
@@ -94,9 +94,9 @@ describe("sessions_send gateway loopback", () => {
|
||||
expect(firstCall?.lane).toBe("nested");
|
||||
} finally {
|
||||
if (prevPort === undefined) {
|
||||
delete process.env.CLAWDIS_GATEWAY_PORT;
|
||||
delete process.env.CLAWDBOT_GATEWAY_PORT;
|
||||
} else {
|
||||
process.env.CLAWDIS_GATEWAY_PORT = prevPort;
|
||||
process.env.CLAWDBOT_GATEWAY_PORT = prevPort;
|
||||
}
|
||||
await server.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user