From 722eb97f934c75aadad454871422ffff761db353 Mon Sep 17 00:00:00 2001 From: Fuxing Loh Date: Mon, 31 Jan 2022 19:57:57 +0800 Subject: [PATCH] fix loan.auction.history test to be more deterministic --- src/module.api/loan.auction.history.e2e.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/module.api/loan.auction.history.e2e.ts b/src/module.api/loan.auction.history.e2e.ts index fc7894231..9a3306500 100644 --- a/src/module.api/loan.auction.history.e2e.ts +++ b/src/module.api/loan.auction.history.e2e.ts @@ -152,7 +152,8 @@ beforeAll(async () => { await tGroup.waitForSync() const height = await alice.container.call('getblockcount') - await waitForIndexedHeight(app, height - 1) + await alice.generate(1) + await waitForIndexedHeight(app, height) }) afterAll(async () => {