Fix DT tests related to order.

This commit is contained in:
Maria Carmina 2023-04-20 23:15:48 +03:00
parent 61f20946c7
commit 1685588d4f
2 changed files with 6 additions and 2 deletions

View File

@ -70,7 +70,9 @@ jobs:
env:
ADDRESS_FILE: /home/runner/.ocean/ocean-contracts/artifacts/address.json
BARGE_FOLDER: /home/runner/.ocean/
- run: npm run test-publish-consume
- run: |
npm run test-publish-consume
npm run test-dt
env:
ADDRESS_FILE: /home/runner/.ocean/ocean-contracts/artifacts/address.json
BARGE_FOLDER: /home/runner/.ocean/

View File

@ -423,7 +423,9 @@ describe('Datatoken tests', async () => {
setProviderFee
)
assert(orderTx, 'Invalid orderTx')
const orderId = `${orderTx.transactionHash.toLowerCase()}-${newDtAddress.toLowerCase()}-${user1.toLowerCase()}-${orderTx.events.OrderStarted.logIndex.toString()}`
const orderId = `${orderTx.transactionHash.toLowerCase()}-${newDtAddress.toLowerCase()}-${user1.toLowerCase()}-${orderTx.events.OrderStarted.logIndex.toFixed(
1
)}`
await sleep(3000)
response = await fetch(subgraphUrl, {