From 5dc6df0e5bc48a097aa61c086ba3c7ed5ac78424 Mon Sep 17 00:00:00 2001 From: amelnytskyi Date: Mon, 11 Mar 2024 15:48:59 +0200 Subject: [PATCH] test: create autotest for Accounts tc1854 Aligned test with integration-test-signed branch --- packages/integration-tests/tests/api/accounts.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 1251fd1af4..880565547e 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -261,12 +261,12 @@ describe("API module: Account", () => { //id1854 it("Verify /api?module=account&action=txlistinternal&txhash=", async () => { - await helper.retryTestAction(async () => { + await helper.runRetriableTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - const txHash = await helper.getStringFromFile(bufferFile + Buffer.txMultiTransferCall); + const txHash = await helper.readFile(Path.absolutePathToBufferFiles, Buffer.txMultiTransferCall); apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&txhash=${txHash}`; - response = await helper.performGETrequest(apiRoute); + response = await helper.performBlockExplorerApiGetRequest(apiRoute); expect(response.status).toBe(200); expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" }));