From 83455cd511ccef5db598e580262d00c89502796e Mon Sep 17 00:00:00 2001 From: TeoV Date: Fri, 8 May 2020 17:46:17 +0300 Subject: [PATCH] Increase time Interval in scheduler_test.go --- scheduler/scheduler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/scheduler_test.go b/scheduler/scheduler_test.go index e8023fcb4..b2486b89b 100644 --- a/scheduler/scheduler_test.go +++ b/scheduler/scheduler_test.go @@ -26,7 +26,7 @@ import ( ) func TestSchedulerUpdateActStats(t *testing.T) { - sched := &Scheduler{actStatsInterval: 1 * time.Millisecond, actSuccessStats: make(map[string]map[time.Time]bool)} + sched := &Scheduler{actStatsInterval: 10 * time.Millisecond, actSuccessStats: make(map[string]map[time.Time]bool)} sched.updateActStats(&engine.Action{Id: "REMOVE_1", ActionType: utils.REMOVE_ACCOUNT}, false) if len(sched.actSuccessStats[utils.REMOVE_ACCOUNT]) != 1 { t.Errorf("Wrong stats: %+v", sched.actSuccessStats[utils.REMOVE_ACCOUNT])