mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Wait for TPs to be loaded in *transfer_balance test
This commit is contained in:
committed by
Dan Christian Bogos
parent
cf158a3b40
commit
5f32a59ac8
@@ -23,6 +23,7 @@ package general_tests
|
||||
import (
|
||||
"sort"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/cgrates/birpc/context"
|
||||
"github.com/cgrates/cgrates/engine"
|
||||
@@ -99,6 +100,7 @@ ACT_TRANSFER,*transfer_balance,"{""DestinationAccountID"":""cgrates.org:ACC_DEST
|
||||
defer shutdown()
|
||||
|
||||
t.Run("CheckInitialBalances", func(t *testing.T) {
|
||||
time.Sleep(10 * time.Millisecond) // wait for tps to be loaded
|
||||
var acnts []*engine.Account
|
||||
if err := client.Call(context.Background(), utils.APIerSv2GetAccounts,
|
||||
&utils.AttrGetAccounts{
|
||||
|
||||
Reference in New Issue
Block a user