mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
test running on sessionmanager
This commit is contained in:
@@ -19,13 +19,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package sessionmanager
|
||||
|
||||
import (
|
||||
//"log"
|
||||
"github.com/cgrates/cgrates/timespans"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestConnect(t *testing.T) {
|
||||
sm := &FSSessionManager{}
|
||||
sm.Connect(new(DirectSessionDelegate), "localhost:8021", "ClueCon")
|
||||
sm.Connect(&SessionDelegate{×pans.Responder{}}, "localhost:8021", "ClueCon")
|
||||
//for {
|
||||
ev := sm.readNextEvent()
|
||||
if ev == nil {
|
||||
|
||||
Reference in New Issue
Block a user