fix(test): save user to avoid lock errors

This commit is contained in:
SabreCat
2022-11-02 15:15:28 -05:00
committed by Phillip Thelen
parent 5aca5b4be7
commit 9b791b4ba0

View File

@@ -438,6 +438,8 @@ describe('Apple Payments', () => {
});
it('errors when a user is using a rebill of the same subscription', async () => {
user = new User();
await user.save();
payments.createSubscription.restore();
iap.getPurchaseData.restore();
iapGetPurchaseDataStub = sinon.stub(iap, 'getPurchaseData')
@@ -459,6 +461,8 @@ describe('Apple Payments', () => {
});
it('errors when a different user is using the subscription', async () => {
user = new User();
await user.save();
payments.createSubscription.restore();
iap.getPurchaseData.restore();
iapGetPurchaseDataStub = sinon.stub(iap, 'getPurchaseData')