From 51117b43f6e6359761c7cbe001151e20e8590f90 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sun, 21 Jun 2026 18:44:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20handler=5Ftest.go?= =?UTF-8?q?=20=E4=B8=AD=20ServeWS=20=E7=BC=BA=E5=B0=91=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/ws/handler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/ws/handler_test.go b/backend/internal/ws/handler_test.go index 552617c..72cd50c 100644 --- a/backend/internal/ws/handler_test.go +++ b/backend/internal/ws/handler_test.go @@ -148,7 +148,7 @@ func setupTestServer(t *testing.T, orch orchestrator.Orchestrator) (*httptest.Se Server: config.ServerConfig{HeartbeatInterval: 30, HeartbeatTimeout: 60}, Session: config.SessionConfig{MaxHistory: 20}, } - r.GET("/ws", ServeWS(sessionMgr, orch, cfg, tokenMgr, nil)) + r.GET("/ws", ServeWS(sessionMgr, orch, cfg, tokenMgr, nil, nil)) srv := httptest.NewServer(r) @@ -591,7 +591,7 @@ func setupTestServerEx(t *testing.T, orch orchestrator.Orchestrator) (*httptest. Server: config.ServerConfig{HeartbeatInterval: 30, HeartbeatTimeout: 60}, Session: config.SessionConfig{MaxHistory: 20}, } - r.GET("/ws", ServeWS(sessionMgr, orch, cfg, tokenMgr, nil)) + r.GET("/ws", ServeWS(sessionMgr, orch, cfg, tokenMgr, nil, nil)) srv := httptest.NewServer(r) return srv, tokenMgr, sessionMgr