Increase time Interval in scheduler_test.go

This commit is contained in:
TeoV
2020-05-08 17:46:17 +03:00
committed by Dan Christian Bogos
parent 2cc081592a
commit 83455cd511

View File

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