diff --git a/apier/v1/apier_it_test.go b/apier/v1/apier_it_test.go index a93835eda..58dbb55d3 100644 --- a/apier/v1/apier_it_test.go +++ b/apier/v1/apier_it_test.go @@ -1301,6 +1301,7 @@ func TestApierComputeReverse(t *testing.T) { } func TestApierResetDataAfterLoadFromFolder(t *testing.T) { + time.Sleep(10 * time.Millisecond) expStats := &utils.CacheStats{ Destinations: 3, Actions: 6, diff --git a/apier/v1/thresholds_it_test.go b/apier/v1/thresholds_it_test.go index 1d9677249..ca6367fc7 100644 --- a/apier/v1/thresholds_it_test.go +++ b/apier/v1/thresholds_it_test.go @@ -492,7 +492,7 @@ func testV1TSMaxHits(t *testing.T) { } func testV1TSStopEngine(t *testing.T) { - if err := engine.KillEngine(100); err != nil { + if err := engine.KillEngine(thdsDelay); err != nil { t.Error(err) } }