Skip to content

Commit c361674

Browse files
NubsCarsonShaw
authored andcommitted
fix(test): align app-core server expectations
1 parent 55b8fe1 commit c361674

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

packages/app-core/scripts/build-llama-cpp-dflash-targets.test.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ import { it as test } from "vitest";
33

44
import { formatHelpText, parseArgs } from "./build-llama-cpp-dflash.mjs";
55

6-
test("help advertises linux aarch64 CUDA fused but not mobile fused targets", () => {
6+
test("help advertises supported fused targets but not Android fused targets", () => {
77
const helpText = formatHelpText();
88
assert.match(helpText, /linux-aarch64-cuda-fused/);
9+
assert.match(helpText, /ios-arm64-metal-fused/);
10+
assert.match(helpText, /ios-arm64-simulator-metal-fused/);
911
assert.doesNotMatch(helpText, /android-arm64-cpu-fused/);
1012
assert.doesNotMatch(helpText, /android-x86_64-cpu-fused/);
11-
assert.doesNotMatch(helpText, /ios-arm64-metal-fused/);
1213
});
1314

14-
test("mobile fused targets fail closed with explicit diagnostics", () => {
15+
test("unsupported Android fused targets fail closed with explicit diagnostics", () => {
1516
const cases = [
1617
["android-arm64-cpu-fused", /Android fused FFI is not wired/],
1718
["android-arm64-vulkan-fused", /Android fused FFI is not wired/],
@@ -23,7 +24,6 @@ test("mobile fused targets fail closed with explicit diagnostics", () => {
2324
"android-x86_64-vulkan-fused",
2425
/Android x86_64 fused FFI is not a dflash target/,
2526
],
26-
["ios-arm64-metal-fused", /iOS fused FFI is not wired or verifier-covered/],
2727
];
2828

2929
for (const [target, pattern] of cases) {

packages/app-core/src/runtime/platform-policy-docs.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ describe("platform policy docs", () => {
2020
expect(sandboxDoc).toContain("@elizaos/plugin-coding-tools");
2121
expect(sandboxDoc).toContain("agent-orchestrator");
2222

23-
expect(mobileDoc).toMatch(/do\s+not run a local Bun backend/);
23+
expect(mobileDoc).toMatch(
24+
/WebView does not open a TCP\s+connection to the full-Bun backend/,
25+
);
2426
expect(mobileDoc).toContain("bun run build:android:cloud");
2527
expect(mobileDoc).toContain("bun run build:android:system");
2628

0 commit comments

Comments
 (0)