mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated export tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
5133783c93
commit
41cdcacff5
@@ -275,10 +275,13 @@ func testCDRsOnExpHttpCdrReplication(t *testing.T) {
|
||||
},
|
||||
}
|
||||
var reply string
|
||||
arg := testCdr1.AsCGREvent()
|
||||
arg.Opts = map[string]interface{}{"ExporterID": "http_localhost"}
|
||||
|
||||
// we expect that the cdr export to fail and go into the failed post directory
|
||||
if err := cdrsMasterRpc.Call(utils.CDRsV1ProcessEvent,
|
||||
&engine.ArgV1ProcessEvent{
|
||||
CGREvent: *testCdr1.AsCGREvent(),
|
||||
CGREvent: *arg,
|
||||
}, &reply); err == nil || err.Error() != utils.ErrPartiallyExecuted.Error() {
|
||||
t.Error("Unexpected error: ", err)
|
||||
}
|
||||
|
||||
@@ -321,16 +321,13 @@ func testSes3ItTerminatWithoutInit(t *testing.T) {
|
||||
var rply string
|
||||
if err := ses3RPC.Call(utils.SessionSv1TerminateSession,
|
||||
args, &rply); err != nil {
|
||||
t.Fatal(err)
|
||||
t.Error(err)
|
||||
}
|
||||
if rply != utils.OK {
|
||||
t.Errorf("Unexpected reply: %s", rply)
|
||||
}
|
||||
}()
|
||||
|
||||
// }
|
||||
|
||||
// func testSes3ItInitAfterTerminate(t *testing.T) {
|
||||
time.Sleep(3 * time.Millisecond)
|
||||
args1 := &sessions.V1InitSessionArgs{
|
||||
InitSession: true,
|
||||
|
||||
Reference in New Issue
Block a user