File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/sdk/tests/e2e/dataProtectorCore Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -310,8 +310,8 @@ describe('dataProtectorCore.getGrantedAccess()', () => {
310310 numberOfAccess : 5 ,
311311 } ) ;
312312
313- expect ( accessBefore ) . toHaveLength ( 1 ) ;
314- expect ( accessBefore [ 0 ] . remainingAccess ) . toBe ( 5 ) ;
313+ expect ( accessBefore ) . toBeDefined ( ) ;
314+ expect ( accessBefore . remainingAccess ) . toBe ( 5 ) ;
315315
316316 // Mock the task processing to avoid actual execution
317317 const mockTaskObservable = {
@@ -364,7 +364,7 @@ describe('dataProtectorCore.getGrantedAccess()', () => {
364364 // Restore mocks
365365 jest . restoreAllMocks ( ) ;
366366 } ,
367- 4 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
367+ 8 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
368368 ) ;
369369 } ) ;
370370
@@ -451,7 +451,7 @@ describe('dataProtectorCore.getGrantedAccess()', () => {
451451
452452 jest . restoreAllMocks ( ) ;
453453 } ,
454- 5 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
454+ 7 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
455455 ) ;
456456 } ) ;
457457
@@ -564,7 +564,7 @@ describe('dataProtectorCore.getGrantedAccess()', () => {
564564
565565 jest . restoreAllMocks ( ) ;
566566 } ,
567- 6 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
567+ 10 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME
568568 ) ;
569569 } ) ;
570570 } ) ;
You can’t perform that action at this time.
0 commit comments