mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add and revise new unit tests on agents
This commit is contained in:
committed by
Dan Christian Bogos
parent
d3975b4d2f
commit
2d6912657d
@@ -89,3 +89,13 @@ func TestHandleChannelDestroyedFail(t *testing.T) {
|
||||
t.Errorf("Expected ev to not change, received <%v>", utils.ToJSON(ev))
|
||||
}
|
||||
}
|
||||
|
||||
func TestAstAgentV1WarnDisconnect(t *testing.T) {
|
||||
tAsteriskAgent := &AsteriskAgent{}
|
||||
tMap := map[string]any{}
|
||||
tString := ""
|
||||
err := tAsteriskAgent.V1WarnDisconnect(nil, tMap, &tString)
|
||||
if err != utils.ErrNotImplemented {
|
||||
t.Errorf("Expected error: %v, got: %v", utils.ErrNotImplemented, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user