Skip to content

Commit

Permalink
fix more datatokens related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0x3bfc committed Oct 21, 2020
1 parent 418305c commit 9cb6ea3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion test/integration/ComputeFlow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import factory from '@oceanprotocol/contracts/artifacts/DTFactory.json'
import datatokensTemplate from '@oceanprotocol/contracts/artifacts/DataTokenTemplate.json'
import { Account, DDO, Metadata } from '../../src/lib'
import { Cluster, Container, Server } from '../../src/ocean/Compute'
import { LoggerInstance } from '../../src/utils'
const web3 = new Web3('http://127.0.0.1:8545')

function sleep(ms: number) {
Expand Down Expand Up @@ -87,7 +88,8 @@ describe('Compute flow', () => {
contracts.factoryAddress,
factory.abi as AbiItem[],
datatokensTemplate.abi as AbiItem[],
web3
web3,
LoggerInstance
)
tokenAddress = await datatoken.create(
blob,
Expand Down
4 changes: 3 additions & 1 deletion test/integration/Marketplaceflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Account, EditableMetadata, Service, ServiceAccess } from '../../src/lib
import { Ocean } from '../../src/ocean/Ocean'
import { ConfigHelper } from '../../src/utils/ConfigHelper'
import { TestContractHandler } from '../TestContractHandler'
import { LoggerInstance } from '../../src/utils'

const web3 = new Web3('http://127.0.0.1:8545')

Expand Down Expand Up @@ -65,7 +66,8 @@ describe('Marketplace flow', () => {
contracts.factoryAddress,
factory.abi as AbiItem[],
datatokensTemplate.abi as AbiItem[],
web3
web3,
LoggerInstance
)
tokenAddress = await datatoken.create(
blob,
Expand Down
4 changes: 3 additions & 1 deletion test/integration/Simpleflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { AbiItem } from 'web3-utils/types'
import Web3 from 'web3'
import factory from '@oceanprotocol/contracts/artifacts/DTFactory.json'
import datatokensTemplate from '@oceanprotocol/contracts/artifacts/DataTokenTemplate.json'
import { LoggerInstance } from '../../src/utils'
const web3 = new Web3('http://127.0.0.1:8545')

describe('Simple flow', () => {
Expand Down Expand Up @@ -40,7 +41,8 @@ describe('Simple flow', () => {
contracts.factoryAddress,
factory.abi as AbiItem[],
datatokensTemplate.abi as AbiItem[],
web3
web3,
LoggerInstance
)
tokenAddress = await datatoken.create(blob, alice, '10000000000', 'AliceDT', 'DTA')
})
Expand Down

0 comments on commit 9cb6ea3

Please sign in to comment.