From 0c9ec8cec79bb3d1d512257a7b1ef1986beb6bfb Mon Sep 17 00:00:00 2001 From: mariacarmina Date: Fri, 21 Feb 2025 20:38:43 +0200 Subject: [PATCH] debug. --- .github/workflows/ci.yml | 3 --- test/unit/Escrow.test.ts | 11 +++++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 292dbaaf3..6b611176f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,9 +71,6 @@ jobs: ls -la "$HOME/.ocean/ocean-contracts/artifacts/" - run: npm run build:metadata - run: npm run test:unit:cover - - name: docker logs for unit tests - run: docker logs ocean-contracts-1 - if: ${{ failure() }} - uses: actions/upload-artifact@v4 with: name: coverage-unit diff --git a/test/unit/Escrow.test.ts b/test/unit/Escrow.test.ts index f99e99581..893550582 100644 --- a/test/unit/Escrow.test.ts +++ b/test/unit/Escrow.test.ts @@ -29,9 +29,16 @@ describe('Escrow payments flow', () => { }) it('User2 makes a deposit in Escrow', async () => { - datatoken = new Datatoken(factoryOwner, await factoryOwner.getChainId()) + datatoken = new Datatoken(user2, await user2.getChainId()) + console.log( + `(await datatoken.balance(OCEAN, await user2.getAddress())): ${await datatoken.balance( + OCEAN, + await user2.getAddress() + )}` + ) await datatoken.approve(OCEAN, await user2.getAddress(), '1000') - await datatoken.transfer(OCEAN, await user2.getAddress(), '1000') + const tx = await datatoken.transfer(OCEAN, await user2.getAddress(), '1000') + console.log(`tx: ${tx}`) assert((await datatoken.balance(OCEAN, await user2.getAddress())) !== '1000') await datatoken.approve(addresses.Escrow, await user2.getAddress(), '1000') await Escrow.deposit(OCEAN, '100')