mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 15:18:44 +05:00
Updated diameter integration test
This commit is contained in:
committed by
Dan Christian Bogos
parent
db1ddeaa43
commit
3e84d4c35b
@@ -238,6 +238,17 @@ func testDiamItDryRun(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
for i := 0; i < *interations; i++ {
|
||||
// ============================================
|
||||
// prevent nil pointer dereference
|
||||
// ============================================
|
||||
if diamClnt.conn == nil {
|
||||
t.Fatal("Diameter conection should not be nil")
|
||||
}
|
||||
if ccr == nil {
|
||||
t.Fatal("The mesage to diameter should not be nil")
|
||||
}
|
||||
// ============================================
|
||||
|
||||
if err := diamClnt.SendMessage(ccr); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user