mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
Update Compute.test.ts
This commit is contained in:
parent
cf7d003d56
commit
bd831c2c61
@ -3,7 +3,7 @@ import { assert } from 'chai'
|
||||
import { config } from '../config'
|
||||
import { Ocean, Account, DDO, MetaData, ComputeJobStatus, Config } from '../../../src'
|
||||
import { getMetadata, createComputeService } from '../utils'
|
||||
import { ServiceCompute } from '../../../src/ddo/Service'
|
||||
|
||||
|
||||
const metadataAsset = getMetadata()
|
||||
const metadataAlgorithm = getMetadata(0, 'algorithm')
|
||||
@ -29,12 +29,7 @@ describe('Compute', () => {
|
||||
before(async () => {
|
||||
ocean = await Ocean.getInstance(customConfig)
|
||||
;[account] = await ocean.accounts.list()
|
||||
computeService = await createComputeService(
|
||||
ocean,
|
||||
account,
|
||||
'1000',
|
||||
metadataAsset.main.datePublished
|
||||
)
|
||||
|
||||
})
|
||||
|
||||
it('should authenticate the consumer account', async () => {
|
||||
@ -43,7 +38,7 @@ describe('Compute', () => {
|
||||
|
||||
it('should publish a dataset with a compute service object', async () => {
|
||||
const stepsAsset = []
|
||||
|
||||
const computeService= await ocean.compute.create_compute_service_attributes(account,"1000",metadataAsset.main.datePublished)
|
||||
dataset = await ocean.assets
|
||||
.create(metadataAsset as MetaData, account, [computeService])
|
||||
.next(step => stepsAsset.push(step))
|
||||
|
Loading…
Reference in New Issue
Block a user