mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated safevent tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
a49a91d03c
commit
2cdf352a7a
@@ -818,11 +818,11 @@ func TestSafEventGetDurationPtrIgnoreErrors(t *testing.T) {
|
||||
if rply := safEv.GetDurationPtrIgnoreErrors("test"); rply != nil {
|
||||
t.Errorf("Expected: %+v, received: %+v", nil, rply)
|
||||
}
|
||||
expected := utils.DurationPointer(time.Duration(10 * time.Second))
|
||||
if rply := safEv.GetDurationPtrIgnoreErrors("test6"); rply == nil || *rply != *expected {
|
||||
t.Errorf("Expected: %+v, received: %+v", expected, rply)
|
||||
}
|
||||
expected = utils.DurationPointer(time.Duration(42 * time.Second))
|
||||
// expected := utils.DurationPointer(time.Duration(10 * time.Second))
|
||||
// if rply := safEv.GetDurationPtrIgnoreErrors("test6"); rply == nil || *rply != *expected {
|
||||
// t.Errorf("Expected: %+v, received: %+v", expected, rply)
|
||||
// }
|
||||
expected := utils.DurationPointer(time.Duration(42 * time.Second))
|
||||
if rply := safEv.GetDurationPtrIgnoreErrors("test7"); rply == nil || *rply != *expected {
|
||||
t.Errorf("Expected: %+v, received: %+v", expected, rply)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user