Skip to content

Commit 16eba14

Browse files
committed
fix: integ tests for Entitlments.isPaidSubscriber fails on desktop apps
1 parent 4e8527c commit 16eba14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/spec/login-shared.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,10 @@ define(function (require, exports, module) {
245245
}
246246

247247
async function verifyIsPaidSubscriber(expected, _testDescription) {
248-
const isPaidSub = await EntitlementsExports.isPaidSubscriber();
249-
expect(isPaidSub).toBe(expected);
248+
await awaitsFor(async ()=> {
249+
const isPaidSub = await EntitlementsExports.isPaidSubscriber();
250+
return isPaidSub === expected;
251+
}, `paid subscriber to be ${expected}`);
250252
}
251253

252254
async function verifyRawEntitlements(expected, _testDescription) {

0 commit comments

Comments
 (0)