@@ -771,6 +771,7 @@ func TestCheckDisputeForIds(t *testing.T) {
771
771
utils .UtilsInterface = utilsPkgMock
772
772
razorUtils = utilsMock
773
773
blockManagerUtils = blockManagerUtilsMock
774
+ utilsInterface = utilsPkgMock
774
775
775
776
utilsPkgMock .On ("IsSorted" , mock .Anything ).Return (tt .args .isSorted , tt .args .index0 , tt .args .index1 )
776
777
utilsMock .On ("GetTxnOpts" , mock .AnythingOfType ("types.TransactionOptions" )).Return (txnOpts )
@@ -779,6 +780,7 @@ func TestCheckDisputeForIds(t *testing.T) {
779
780
blockManagerUtilsMock .On ("DisputeCollectionIdShouldBePresent" , mock .Anything , mock .Anything , mock .Anything , mock .Anything , mock .Anything ).Return (tt .args .DisputeCollectionIdShouldBePresent , tt .args .DisputeCollectionIdShouldBePresentErr )
780
781
utilsPkgMock .On ("IsMissing" , mock .Anything , mock .Anything ).Return (tt .args .isPresent , tt .args .positionOfPresentValue , tt .args .presentCollectionId )
781
782
blockManagerUtilsMock .On ("DisputeCollectionIdShouldBeAbsent" , mock .Anything , mock .Anything , mock .Anything , mock .Anything , mock .Anything , mock .Anything ).Return (tt .args .DisputeCollectionIdShouldBeAbsent , tt .args .DisputeCollectionIdShouldBeAbsentErr )
783
+ utilsPkgMock .On ("IncreaseGasLimitValue" , mock .Anything , mock .Anything , mock .Anything ).Return (uint64 (2000 ), nil )
782
784
ut := & UtilsStruct {}
783
785
got , err := ut .CheckDisputeForIds (client , transactionOpts , epoch , blockIndex , tt .args .idsInProposedBlock , tt .args .revealedCollectionIds )
784
786
if (err != nil ) != tt .wantErr {
0 commit comments