leave time for scheduler to react

This commit is contained in:
Radu Ioan Fericean
2015-12-20 22:10:11 +02:00
parent dec83a7858
commit dc4f0be05c

View File

@@ -1098,7 +1098,7 @@ func TestTutLocalSetAccount(t *testing.T) {
Offset int // Set the item offset
Limit int // Limit number of items retrieved
}
//time.Sleep(500*time.Millisecond + time.Duration(*waitRater)*time.Millisecond) // Give time for scheduler to execute topups
time.Sleep(time.Duration(*waitRater) * time.Millisecond) // Give time for scheduler to execute topups
var acnts []*engine.Account
if err := tutLocalRpc.Call("ApierV2.GetAccounts", utils.AttrGetAccounts{Tenant: attrs.Tenant, AccountIds: []string{attrs.Account}}, &acnts); err != nil {
t.Error(err)