#bssienes

1 messages · Page 1 of 1 (latest)

thick sleetBOT
floral sphinx
worn moat
#

how can I simulate auto deletion of a subscription in test mode? I advanced time for more than 30 days but I can still see the subscription.

floral sphinx
#

are you talking about the automatic deletion of a subscription because of test mode retention?

worn moat
#

yes

floral sphinx
#

Gotcha - I don't think that's something that's controlled/can be tested with test clocks. The subscription is automatically deleted 30 "real" days after it's been cancelled

#

Is there a specific reason you need to test this?

worn moat
#

I was getting this error in my app, I am trying to reproduce it

#

I think the subscription does not exist because it was deleted automatically after some time. I cant find an option to delete a subscription manually to re-create this issue

floral sphinx
#

Do you need to re-create the issue though? This is an error you'd only ever see in test mode - if you're end goal is building a production/livemode, then this isn't a state that your subscriptions would ever get in once you make all your requests in live mode

worn moat
#

That might be right but in my test environment, at least I would like to be able to change my customer id within my app and I wasn't able to do that because of this error so I want to add a validation.

floral sphinx
#

That's fair - unfortunately that leave you a bit stuck since there's no way to force this automatic deletion to happen earlier than the 30 days.

#

The only thing I could think of is mocking out the response to simulate the error you'd get if the subscription was deleted

worn moat
#

ok, thank you