more time for the scheduler

This commit is contained in:
Radu Ioan Fericean
2014-04-23 13:32:18 +03:00
parent 251d504d40
commit b4dbb1ca9e

View File

@@ -120,7 +120,7 @@ TOPUP10_AT,TOPUP10_AC1,ASAP,10`
func TestExecuteActions(t *testing.T) {
scheduler.NewScheduler().LoadActionTimings(acntDb)
time.Sleep(time.Duration(100) * time.Microsecond) // Give time to scheduler to topup the account
time.Sleep(time.Millisecond) // Give time to scheduler to topup the account
if acnt, err := acntDb.GetAccount("*out:cgrates.org:12345"); err != nil {
t.Error(err)
} else if len(acnt.BalanceMap) != 2 {