From dc4f0be05cb75ca00052c6e77d31f26e2626073c Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Sun, 20 Dec 2015 22:10:11 +0200 Subject: [PATCH] leave time for scheduler to react --- general_tests/tutorial_local_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general_tests/tutorial_local_test.go b/general_tests/tutorial_local_test.go index 65e014ea5..3c1aea864 100644 --- a/general_tests/tutorial_local_test.go +++ b/general_tests/tutorial_local_test.go @@ -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)