Skip to content

Commit

Permalink
test: create autotest for Accounts tc1854
Browse files Browse the repository at this point in the history
Aligned test with integration-test-signed branch
  • Loading branch information
amelnytskyi committed Mar 11, 2024
1 parent 4e86100 commit 5dc6df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/integration-tests/tests/api/accounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }));
Expand Down

0 comments on commit 5dc6df0

Please sign in to comment.