Skip to content

Commit 6602d54

Browse files
committed
Revert "fix: patch canvas-auth test for missing A2UI assets in test build"
This reverts commit 548f133.
1 parent 548f133 commit 6602d54

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

nix/scripts/gateway-postpatch.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@ if [ -f src/agents/shell-utils.ts ]; then
3232
fi
3333
fi
3434

35-
# The canvas-auth test was renamed from .e2e.test.ts to .test.ts upstream,
36-
# bringing it into the gateway vitest suite for the first time. It expects
37-
# A2UI assets (a2ui.bundle.js) on disk, but the Nix test build doesn't run
38-
# canvas:a2ui:bundle. Relax the assertion to accept 503 (assets not found)
39-
# until the test build is expanded to produce the bundle.
40-
# Tracked in: https://github.com/openclaw/nix-openclaw/issues/64
41-
if [ -f src/gateway/server.canvas-auth.test.ts ]; then
42-
if grep -q 'scopedA2ui\.status.*toBe(200)' src/gateway/server.canvas-auth.test.ts; then
43-
sed -i 's/expect(scopedA2ui\.status)\.toBe(200)/expect(scopedA2ui.status).toBe(503)/' src/gateway/server.canvas-auth.test.ts
44-
fi
45-
fi
46-
4735
if [ -f src/docker-setup.test.ts ]; then
4836
if ! grep -q "#!/bin/sh" src/docker-setup.test.ts; then
4937
sed -i 's|#!/usr/bin/env bash|#!/bin/sh|' src/docker-setup.test.ts

0 commit comments

Comments
 (0)