Updated diameter integration test

This commit is contained in:
Trial97
2019-03-22 09:33:30 +02:00
committed by Dan Christian Bogos
parent db1ddeaa43
commit 3e84d4c35b

View File

@@ -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)
}