Updated export tests

This commit is contained in:
Trial97
2021-01-28 12:09:32 +02:00
committed by Dan Christian Bogos
parent 5133783c93
commit 41cdcacff5
2 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -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,