test(bridge): use NewBridgeServerInsecure in capabilities snapshot test

NewBridgeServer now returns nil when token is empty (security fix #408).
The test does not need a real token — switch to NewBridgeServerInsecure
so the BridgeServer is properly constructed and the test does not panic.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ClaudeandCursor committed 2026-05-06 15:51:18 +08:00
1 parent 24a097bdbf
commit 9090e7c8f1
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ func TestBridgeBuildCapabilitiesSnapshotIncludesProjectCatalog(t *testing.T) {
CurrentBuildTime = prevBuildTime
}()
bs := NewBridgeServer(0, "", "/bridge/ws", nil)
bs := NewBridgeServerInsecure(0, "", "/bridge/ws", nil)
bp := bs.NewPlatform("test-proj")
e := NewEngine("test-proj", &stubAgent{}, []Platform{bp}, "", LangEnglish)
e.AddCommand("deploy", "Deploy app", "ship it", "", "", "config")