mirror of
https://github.com/chenhg5/cc-connect.git
synced 2026-10-25 17:36:43 +08:00
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:
1 parent
24a097bdbf
commit
9090e7c8f1
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user