millisecond for scheduler

This commit is contained in:
Radu Ioan Fericean
2014-04-25 20:36:40 +03:00
parent 4934daa6b9
commit bc94fe34d1
3 changed files with 3 additions and 3 deletions

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 {

View File

@@ -120,7 +120,7 @@ TOPUP10_AT,TOPUP10_AC1,ASAP,10`
func TestExecuteActions2(t *testing.T) {
scheduler.NewScheduler().LoadActionTimings(acntDb2)
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 := acntDb2.GetAccount("*out:cgrates.org:12345"); err != nil {
t.Error(err)
} else if len(acnt.BalanceMap) != 2 {

View File

@@ -118,7 +118,7 @@ cgrates.org,call,*out,discounted_minutes,2013-01-06T00:00:00Z,RP_UK_Mobile_BIG5_
func TestExecuteActions3(t *testing.T) {
scheduler.NewScheduler().LoadActionTimings(acntDb3)
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 := acntDb3.GetAccount("*out:cgrates.org:12345"); err != nil {
t.Error(err)
} else if len(acnt.BalanceMap) != 1 {