mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 00:58:45 +05:00
Add ability to ERS to update or move ERS SQL events to a new table & add *export flag for ERS readers
This commit is contained in:
committed by
Dan Christian Bogos
parent
a2b86e1a02
commit
d35b14b6b9
@@ -451,6 +451,13 @@ func TestParseTimeDetectLayout(t *testing.T) {
|
||||
if err != nil || date.Sub(expected).Seconds() > 20 || date.Sub(expected).Seconds() < 19 {
|
||||
t.Error("error parsing date: ", date.Sub(expected).Seconds())
|
||||
}
|
||||
|
||||
date, err = ParseTimeDetectLayout("-20s", "")
|
||||
expected = time.Now()
|
||||
if err != nil || expected.Sub(date).Seconds() > 21 || expected.Sub(date).Seconds() < 20 {
|
||||
t.Error("error parsing date: ", expected.Sub(date).Seconds())
|
||||
}
|
||||
|
||||
expected = time.Now().AddDate(0, 0, 1)
|
||||
if date, err := ParseTimeDetectLayout("*daily", ""); err != nil {
|
||||
t.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user