From 103cb486924c0017a7e66035d4305f9f32e257da Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 21 Oct 2017 19:26:57 +0200 Subject: [PATCH] test case for SessionManager.Size() --- app/proxyman/mux/session_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/proxyman/mux/session_test.go b/app/proxyman/mux/session_test.go index addff874..63953ecf 100644 --- a/app/proxyman/mux/session_test.go +++ b/app/proxyman/mux/session_test.go @@ -14,9 +14,11 @@ func TestSessionManagerAdd(t *testing.T) { s := m.Allocate() assert.Uint16(s.ID).Equals(1) + assert.Int(m.Size()).Equals(1) s = m.Allocate() assert.Uint16(s.ID).Equals(2) + assert.Int(m.Size()).Equals(2) s = &Session{ ID: 4,