From 972775e61e7a8375fc37b1c8b5f7284fb3393cec Mon Sep 17 00:00:00 2001 From: Jorge-Lopes Date: Thu, 3 Oct 2024 21:27:52 +0100 Subject: [PATCH] chore(a3p): remove unnecessary waitForBlock calls rel: https://github.com/Agoric/BytePitchPartnerEng/issues/13 --- a3p-integration/proposals/z:acceptance/kread.test.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/a3p-integration/proposals/z:acceptance/kread.test.js b/a3p-integration/proposals/z:acceptance/kread.test.js index e15838ddcaa..ab524541887 100644 --- a/a3p-integration/proposals/z:acceptance/kread.test.js +++ b/a3p-integration/proposals/z:acceptance/kread.test.js @@ -3,7 +3,6 @@ import { provisionSmartWallet, USER1ADDR as Alice, GOV1ADDR as Bob, - waitForBlock, } from '@agoric/synthetic-chain'; import { buyCharacter, @@ -49,7 +48,7 @@ test.serial('Alice unequips all defaults Items', async t => { ); await unequipAllItems(Alice); - waitForBlock(5); + const characterInventoryAfter = await getCharacterInventory(characterId); t.log(`Character inventory after unequipping: ${characterInventoryAfter}`); @@ -72,7 +71,7 @@ test.serial('Alice sells unequiped Item', async t => { const itemBefore = await getBalanceFromPurse(Alice, 'item'); await sellItem(Alice); - waitForBlock(5); + const itemListAfter = await getMarketItemsChildren(); t.is(itemListAfter.length, itemListBefore.length + 1); @@ -100,7 +99,7 @@ test.serial('Bob buys an Item on marketplace', async t => { const marketItem = await getMarketItem(marketItemNode); await buyItem(Bob); - waitForBlock(5); + const itemListAfter = await getMarketItemsChildren(); t.is(itemListAfter.length, itemListBefore.length - 1); @@ -138,7 +137,7 @@ test.serial('Alice sells a Character', async t => { ); await sellCharacter(Alice); - waitForBlock(5); + const characterListAfter = await getMarketCharactersChildren(); t.true(