File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/sharing-smart-contract/test/e2e Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ describe('ConsumeProtectedData', () => {
101101 value : ethers . parseUnits ( subscriptionParams . price . toString ( ) , 'gwei' ) ,
102102 } ) ; // value sent should be in wei
103103 await dataProtectorSharingContract . connect ( addr2 ) . subscribeToCollection ( collectionTokenId , subscriptionParams ) ;
104- // advance time by one hour and mine a new block
105- await time . increase ( subscriptionParams . duration ) ;
104+ // advance time to reach end of subscription and mine a new block
105+ await time . increase ( subscriptionParams . duration + 1 ) ;
106106
107107 await expect (
108108 dataProtectorSharingContract
@@ -127,8 +127,8 @@ describe('ConsumeProtectedData', () => {
127127 value : ethers . parseUnits ( rentingParams . price . toString ( ) , 'gwei' ) ,
128128 } ) ; // value sent should be in wei
129129 await dataProtectorSharingContract . connect ( addr2 ) . rentProtectedData ( protectedDataAddress , rentingParams ) ;
130- // advance time by one hour and mine a new block
131- await time . increase ( rentingParams . duration ) ;
130+ // advance time to reach end of renting and mine a new block
131+ await time . increase ( rentingParams . duration + 1 ) ;
132132
133133 await expect (
134134 dataProtectorSharingContract
You can’t perform that action at this time.
0 commit comments