@@ -1109,23 +1109,20 @@ describe('Compute', () => {
11091109 datasetDDO . services [ 0 ] . compute = {
11101110 allowRawAlgorithm : false ,
11111111 allowNetworkAccess : true ,
1112- publisherTrustedAlgorithmPublishers : [ ] ,
1113- publisherTrustedAlgorithms : [ ]
1114- }
1115-
1116- if ( ! setTrustedAlgosEmpty ) {
1117- datasetDDO . services [ 0 ] . compute . publisherTrustedAlgorithmPublishers = [
1118- publisherAddress
1119- ]
1120- datasetDDO . services [ 0 ] . compute . publisherTrustedAlgorithms = [
1121- {
1122- did : algoDDO . id ,
1123- filesChecksum :
1124- 'f6a7b95e4a2e3028957f69fdd2dac27bd5103986b2171bc8bfee68b52f874dcd' ,
1125- containerSectionChecksum :
1126- 'ba8885fcc7d366f058d6c3bb0b7bfe191c5f85cb6a4ee3858895342436c23504'
1127- }
1128- ]
1112+ publisherTrustedAlgorithmPublishers : setTrustedAlgosEmpty
1113+ ? [ ]
1114+ : [ publisherAddress ] ,
1115+ publisherTrustedAlgorithms : setTrustedAlgosEmpty
1116+ ? [ ]
1117+ : [
1118+ {
1119+ did : algoDDO . id ,
1120+ filesChecksum :
1121+ 'f6a7b95e4a2e3028957f69fdd2dac27bd5103986b2171bc8bfee68b52f874dcd' ,
1122+ containerSectionChecksum :
1123+ 'ba8885fcc7d366f058d6c3bb0b7bfe191c5f85cb6a4ee3858895342436c23504'
1124+ }
1125+ ]
11291126 }
11301127
11311128 const metadata = hexlify ( Buffer . from ( JSON . stringify ( datasetDDO ) ) )
@@ -1200,6 +1197,7 @@ describe('Compute', () => {
12001197 datasetDDOTest . services [ 0 ] . id ,
12011198 oceanNode
12021199 )
1200+ console . log ( `result: ${ result } ` )
12031201 console . log ( `setTrustedAlgosEmpty: ${ setTrustedAlgosEmpty } ` )
12041202 expect ( result ) . to . equal ( ! setTrustedAlgosEmpty )
12051203 } else expect ( expectedTimeoutFailure ( this . test . title ) ) . to . be . equal ( wasTimeout )
0 commit comments