mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 15:48:44 +05:00
event handlers
This commit is contained in:
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package sessionmanager
|
||||
|
||||
import (
|
||||
"log"
|
||||
//"log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -28,7 +28,9 @@ func TestConnect(t *testing.T) {
|
||||
sm.Connect("localhost:8021", "ClueCon")
|
||||
for {
|
||||
ev := sm.ReadNextEvent()
|
||||
log.Printf("%s : %s", ev.Fields["Event-Name"], ev.Fields["Event-Subclass"])
|
||||
log.Print(ev)
|
||||
if ev == nil {
|
||||
t.Error("Got nil event!")
|
||||
}
|
||||
//log.Print(ev)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user