Przeglądaj źródła

test case for SessionManager.Size()

Darien Raymond 8 lat temu
rodzic
commit
103cb48692
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      app/proxyman/mux/session_test.go

+ 2 - 0
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,