From 3d7243dfb99d7e162f78bf31a2e3a75991d00437 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Fri, 7 Dec 2018 15:13:19 +0200 Subject: [PATCH] Fix appier/v1 integration tests --- apier/v1/apier_it_test.go | 1 + apier/v1/thresholds_it_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) } }