1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

test case for SessionManager.Size()

This commit is contained in:
Darien Raymond 2017-10-21 19:26:57 +02:00
parent 6dd23b45b0
commit 103cb48692

View File

@ -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,