From 67f5e24453c921fc80b339ba587f608bfaec2f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Tue, 8 Jul 2025 22:18:41 +0800 Subject: [PATCH] Update session_test.go --- common/mux/session_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/mux/session_test.go b/common/mux/session_test.go index 9b3e8719..4c2ec189 100644 --- a/common/mux/session_test.go +++ b/common/mux/session_test.go @@ -9,7 +9,7 @@ import ( func TestSessionManagerAdd(t *testing.T) { m := NewSessionManager() - s := m.Allocate(0) + s := m.Allocate(ClientStrategy{}) if s.ID != 1 { t.Error("id: ", s.ID) } @@ -17,7 +17,7 @@ func TestSessionManagerAdd(t *testing.T) { t.Error("size: ", m.Size()) } - s = m.Allocate(0) + s = m.Allocate(ClientStrategy{}) if s.ID != 2 { t.Error("id: ", s.ID) } @@ -39,7 +39,7 @@ func TestSessionManagerAdd(t *testing.T) { func TestSessionManagerClose(t *testing.T) { m := NewSessionManager() - s := m.Allocate(0) + s := m.Allocate(ClientStrategy{}) if m.CloseIfNoSession() { t.Error("able to close")