mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:00:43 +00:00
fix(qa-lab): restore transport helper contracts
This commit is contained in:
@@ -19,6 +19,8 @@ function createScenarioWaitForCondition(state: QaTransportState) {
|
||||
return createFailureAwareTransportWaitForCondition(state);
|
||||
}
|
||||
|
||||
const waitForCondition = createScenarioWaitForCondition;
|
||||
|
||||
async function waitForOutboundMessage(
|
||||
state: QaTransportState,
|
||||
predicate: (message: QaBusMessage) => boolean,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/temp-path";
|
||||
|
||||
export function createTempDirHarness() {
|
||||
const tempDirs: string[] = [];
|
||||
@@ -12,7 +12,7 @@ export function createTempDirHarness() {
|
||||
);
|
||||
},
|
||||
async makeTempDir(prefix: string) {
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), prefix));
|
||||
const dir = await fs.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), prefix));
|
||||
tempDirs.push(dir);
|
||||
return dir;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user