Fixed integration test regadring cdrs ttl internal

This commit is contained in:
andronache
2021-10-05 09:36:02 +03:00
committed by Dan Christian Bogos
parent 7bae909e38
commit a4625e64fe
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@
"stor_db": {
"db_type": "*internal",
"items":{
"cdrs": {"ttl": "2s"}
"cdrs": {"limit": -1,"ttl": "2s"}
}
},

View File

@@ -127,7 +127,7 @@ func testCdrsIntTestTTL(t *testing.T) {
time.Sleep(3 * time.Second)
if err := cdrsIntRPC.Call(utils.APIerSv2GetCDRs, &utils.RPCCDRsFilter{}, &cdrs); err == nil ||
err.Error() != utils.ErrNotFound.Error() {
t.Fatal("Unexpected error: ", err.Error())
t.Fatal("Unexpected error: ", err)
}
}