mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Increase time Interval in scheduler_test.go
This commit is contained in:
committed by
Dan Christian Bogos
parent
2cc081592a
commit
83455cd511
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user