From 497927a0f45fd569a46efc22cf2b203c6a909b4c Mon Sep 17 00:00:00 2001 From: Alex Coseru Date: Tue, 25 May 2021 12:19:31 +0300 Subject: [PATCH] remove all doo price tests (#805) --- test/integration/Marketplaceflow.test.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/test/integration/Marketplaceflow.test.ts b/test/integration/Marketplaceflow.test.ts index 05bbbd4e..61dd7d2b 100644 --- a/test/integration/Marketplaceflow.test.ts +++ b/test/integration/Marketplaceflow.test.ts @@ -464,12 +464,6 @@ describe('Marketplace flow', () => { alice.getId() ) assert(trxReceipt) - await sleep(aquaSleep) - const exchangeDetails = await ocean.fixedRateExchange.searchforDT(tokenAddress, '0') - const resolvedDDO = await ocean.assets.resolve(ddo.id) - assert(resolvedDDO.price.type === 'exchange') - assert(resolvedDDO.price.value === 1) - assert(resolvedDDO.price.exchange_id === exchangeDetails[0].exchangeID) }) it('Alice should update the FRE pricing for her asset', async () => { const exchangeDetails = await ocean.fixedRateExchange.searchforDT(tokenAddress, '0') @@ -480,10 +474,6 @@ describe('Marketplace flow', () => { alice.getId() ) assert(trxReceipt) - await sleep(aquaSleep) - const resolvedDDO = await ocean.assets.resolve(ddo.id) - assert(resolvedDDO.price.type === 'exchange') - assert(resolvedDDO.price.value === 2) }) it('Alice should create a Pool pricing for her asset', async () => { const dtAmount = '45' @@ -502,23 +492,12 @@ describe('Marketplace flow', () => { assert(createTx) const alicePoolAddress = createTx.events.BPoolRegistered.returnValues[0] assert(alicePoolAddress) - await sleep(aquaSleep) - const resolvedDDO = await ocean.assets.resolve(ddoWithPool.id) - poolLastPrice = resolvedDDO.price.value - assert(resolvedDDO.price.type === 'pool') - assert(resolvedDDO.price.value) - assert(resolvedDDO.price.pools.includes(alicePoolAddress)) }) it('Alice should update the POOL pricing for her asset by buying a DT', async () => { const poolAddress = await ocean.pool.searchPoolforDT(tokenAddressWithPool) const buyTx = await ocean.pool.buyDT(alice.getId(), poolAddress[0], '1', '999') assert(buyTx) - await sleep(aquaSleep) - const resolvedDDO = await ocean.assets.resolve(ddoWithPool.id) - assert(resolvedDDO.price.type === 'pool') - assert(resolvedDDO.price.value !== poolLastPrice) - assert(resolvedDDO.price.pools.includes(poolAddress[0])) }) it('Alice publishes a dataset but passed data token is invalid', async () => {