increased time.sleep for cache to remove on ttl

This commit is contained in:
gezimbll
2024-06-12 08:01:30 -04:00
committed by Dan Christian Bogos
parent 1c1d211c7c
commit 7e3b1b7052

View File

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