satellite/payments: De-shadow customer page var in stripe mock
Fixes infinite loop when there are more records than the limit. Change-Id: Ib61a8fcad6d08f4e0f1c5715d710acec607004b3
This commit is contained in:
parent
376547c33c
commit
7af245c3e7
@ -155,7 +155,7 @@ func (m *mockCustomers) repopulate() error {
|
||||
}
|
||||
|
||||
for cusPage.Next {
|
||||
cusPage, err := m.customersDB.List(ctx, cusPage.NextOffset, limit, time.Now())
|
||||
cusPage, err = m.customersDB.List(ctx, cusPage.NextOffset, limit, time.Now())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user