Skip to content

Commit b146e35

Browse files
committed
fix: adjust timeout values in getGrantedAccess tests
1 parent 49ff4c9 commit b146e35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/sdk/tests/e2e/dataProtectorCore/getGrantedAccess.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ describe('dataProtectorCore.getGrantedAccess()', () => {
313313
expect(accessBefore).toBeDefined();
314314
expect(accessBefore.remainingAccess).toBe(5);
315315

316-
// Mock the task processing to avoid actual execution
316+
// Mock the task processing to avoid actual execution but simulate consumption
317317
const mockTaskObservable = {
318318
subscribe: ({ complete }) => {
319319
if (complete) {
@@ -376,7 +376,7 @@ describe('dataProtectorCore.getGrantedAccess()', () => {
376376
// Restore mocks
377377
jest.restoreAllMocks();
378378
},
379-
8 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
379+
15 * MAX_EXPECTED_BLOCKTIME + 2 * MAX_EXPECTED_WEB2_SERVICES_TIME
380380
);
381381
});
382382

@@ -476,7 +476,7 @@ describe('dataProtectorCore.getGrantedAccess()', () => {
476476

477477
jest.restoreAllMocks();
478478
},
479-
7 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
479+
18 * MAX_EXPECTED_BLOCKTIME + 2 * MAX_EXPECTED_WEB2_SERVICES_TIME
480480
);
481481
});
482482

@@ -604,7 +604,7 @@ describe('dataProtectorCore.getGrantedAccess()', () => {
604604

605605
jest.restoreAllMocks();
606606
},
607-
10 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
607+
25 * MAX_EXPECTED_BLOCKTIME + 3 * MAX_EXPECTED_WEB2_SERVICES_TIME
608608
);
609609
});
610610
});

0 commit comments

Comments
 (0)