mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
increased time.sleep for cache to remove on ttl
This commit is contained in:
committed by
Dan Christian Bogos
parent
1c1d211c7c
commit
7e3b1b7052
@@ -2168,7 +2168,7 @@ func TestAgReqSetFieldsInCacheWithTimeOut(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
// give enough time to Cache to remove ttl the *uch
|
||||
time.Sleep(7 * time.Millisecond)
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
if _, err := agReq.FieldAsInterface([]string{utils.MetaUCH, utils.Tenant}); err != utils.ErrNotFound {
|
||||
t.Errorf("agReq.FieldAsInterface([]string{%q,%q}):got err=%v, want %v",
|
||||
utils.MetaUCH, utils.Tenant, err, utils.ErrNotFound)
|
||||
|
||||
Reference in New Issue
Block a user