1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

use proper container checksum and removed logs

This commit is contained in:
Bogdan Fazakas 2022-08-11 11:57:25 +03:00
parent 61477269db
commit a41e2cf91f

View File

@ -176,7 +176,7 @@ const algoDdoWithNoTimeout = {
image: 'ubuntu', image: 'ubuntu',
tag: 'latest', tag: 'latest',
checksum: checksum:
'sha256:d39ab4712a8395d0b399dea44d9cb8b34ac942411b6a380449ebdb9d321136a3' 'sha256:42ba2dfce475de1113d55602d40af18415897167d47c2045ec7b6d9746ff148f'
} }
} }
}, },
@ -218,7 +218,7 @@ const algoDdoWith1mTimeout = {
image: 'ubuntu', image: 'ubuntu',
tag: 'latest', tag: 'latest',
checksum: checksum:
'sha256:d39ab4712a8395d0b399dea44d9cb8b34ac942411b6a380449ebdb9d321136a3' 'sha256:42ba2dfce475de1113d55602d40af18415897167d47c2045ec7b6d9746ff148f'
} }
} }
}, },
@ -459,7 +459,6 @@ describe('Simple compute tests', async () => {
providerUrl, providerUrl,
consumerAccount consumerAccount
) )
console.log('providerInitializeComputeResults =', providerInitializeComputeResults)
assert( assert(
!('error' in providerInitializeComputeResults.algorithm), !('error' in providerInitializeComputeResults.algorithm),
'Cannot order algorithm' 'Cannot order algorithm'
@ -480,11 +479,6 @@ describe('Simple compute tests', async () => {
0 0
) )
} }
console.log(' asset =', assets[0])
console.log(' algo =', algo)
console.log(' consumerAccount =', consumerAccount)
console.log(' computeEnv.id =', computeEnv.id)
try {
const computeJobs = await ProviderInstance.computeStart( const computeJobs = await ProviderInstance.computeStart(
providerUrl, providerUrl,
web3, web3,
@ -493,15 +487,10 @@ describe('Simple compute tests', async () => {
assets[0], assets[0],
algo algo
) )
console.log(' computeJobs response =', computeJobs)
freeEnvDatasetTxId = assets[0].transferTxId freeEnvDatasetTxId = assets[0].transferTxId
freeEnvAlgoTxId = algo.transferTxId freeEnvAlgoTxId = algo.transferTxId
assert(computeJobs, 'Cannot start compute job') assert(computeJobs, 'Cannot start compute job')
computeJobId = computeJobs[0].jobId computeJobId = computeJobs[0].jobId
} catch (error) {
console.log(' computeJobs error =', error)
console.log(' computeJobs error =', error.message)
}
}) })
it('should restart a computeJob without paying anything, because order is valid and providerFees are still valid', async () => { it('should restart a computeJob without paying anything, because order is valid and providerFees are still valid', async () => {