1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-05 21:58:39 -04:00

testing: Test fetching all a user's accounts

This commit is contained in:
2017-10-12 22:19:53 -04:00
parent c26ce83aa3
commit 6726d9cb2f
4 changed files with 55 additions and 2 deletions

View File

@ -90,7 +90,7 @@ func (t *TestData) Initialize() (*TestData, error) {
for i, account := range t.accounts {
account.SecurityId = t2.securities[t.accounts[i].SecurityId].SecurityId
if account.ParentAccountId != -1 {
account.ParentAccountId = t2.accounts[t.accounts[i].AccountId].AccountId
account.ParentAccountId = t2.accounts[t.accounts[i].ParentAccountId].AccountId
}
a2, err := createAccount(t2.clients[account.UserId], &account)
if err != nil {