Wait for TPs to be loaded in *transfer_balance test

This commit is contained in:
ionutboangiu
2024-04-10 09:55:47 +03:00
committed by Dan Christian Bogos
parent cf158a3b40
commit 5f32a59ac8

View File

@@ -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{