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:
parent
61477269db
commit
a41e2cf91f
@ -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,28 +479,18 @@ describe('Simple compute tests', async () => {
|
|||||||
0
|
0
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
console.log(' asset =', assets[0])
|
const computeJobs = await ProviderInstance.computeStart(
|
||||||
console.log(' algo =', algo)
|
providerUrl,
|
||||||
console.log(' consumerAccount =', consumerAccount)
|
web3,
|
||||||
console.log(' computeEnv.id =', computeEnv.id)
|
consumerAccount,
|
||||||
try {
|
computeEnv.id,
|
||||||
const computeJobs = await ProviderInstance.computeStart(
|
assets[0],
|
||||||
providerUrl,
|
algo
|
||||||
web3,
|
)
|
||||||
consumerAccount,
|
freeEnvDatasetTxId = assets[0].transferTxId
|
||||||
computeEnv.id,
|
freeEnvAlgoTxId = algo.transferTxId
|
||||||
assets[0],
|
assert(computeJobs, 'Cannot start compute job')
|
||||||
algo
|
computeJobId = computeJobs[0].jobId
|
||||||
)
|
|
||||||
console.log(' computeJobs response =', computeJobs)
|
|
||||||
freeEnvDatasetTxId = assets[0].transferTxId
|
|
||||||
freeEnvAlgoTxId = algo.transferTxId
|
|
||||||
assert(computeJobs, 'Cannot start compute job')
|
|
||||||
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 () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user