mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
test case for SessionManager.Size()
This commit is contained in:
parent
6dd23b45b0
commit
103cb48692
@ -14,9 +14,11 @@ func TestSessionManagerAdd(t *testing.T) {
|
|||||||
|
|
||||||
s := m.Allocate()
|
s := m.Allocate()
|
||||||
assert.Uint16(s.ID).Equals(1)
|
assert.Uint16(s.ID).Equals(1)
|
||||||
|
assert.Int(m.Size()).Equals(1)
|
||||||
|
|
||||||
s = m.Allocate()
|
s = m.Allocate()
|
||||||
assert.Uint16(s.ID).Equals(2)
|
assert.Uint16(s.ID).Equals(2)
|
||||||
|
assert.Int(m.Size()).Equals(2)
|
||||||
|
|
||||||
s = &Session{
|
s = &Session{
|
||||||
ID: 4,
|
ID: 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user