Respect provider rate limits and preserve bank connections on throttling
This commit is contained in:
@@ -185,11 +185,11 @@ func TestRenewedConsentWakesSchedulerAndAutomaticallyImports(t *testing.T) {
|
||||
|
||||
type recoveryBank struct{ historyBank }
|
||||
|
||||
func (b *recoveryBank) Status(ctx context.Context, id string) (banking.Session, error) {
|
||||
func (b *recoveryBank) Status(ctx context.Context, id string) (banking.SessionStatus, error) {
|
||||
if id != b.session.ID {
|
||||
return banking.Session{}, banking.ErrReconnect
|
||||
return banking.SessionStatus{}, banking.ErrReconnect
|
||||
}
|
||||
return b.session, nil
|
||||
return b.historyBank.Status(ctx, id)
|
||||
}
|
||||
|
||||
func TestInterruptedRenewalDiscardsSupersededConsentDuringRecovery(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user